LeviLamina
Loading...
Searching...
No Matches
ActionContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace npc { struct CommandAction; }
8namespace npc { struct UrlAction; }
9// clang-format on
10
11namespace npc {
12
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 24, ::std::vector<::std::variant<::npc::CommandAction, ::npc::UrlAction>>> mActions;
18 ::ll::TypedStorage<8, 24, ::std::vector<uint64>> mButtons;
19 // NOLINTEND
20
21public:
22 // member functions
23 // NOLINTBEGIN
24 MCFOLD ::std::variant<::npc::CommandAction, ::npc::UrlAction> const* at(uint64 i) const;
25
26 MCFOLD ::std::variant<::npc::CommandAction, ::npc::UrlAction>* at(uint64 i);
27
28#ifdef LL_PLAT_C
29 MCAPI uint64 countButtons() const;
30#endif
31
32 MCAPI uint64 countUrl() const;
33
34 MCFOLD ::std::vector<::std::variant<::npc::CommandAction, ::npc::UrlAction>> const& data() const;
35
36 MCAPI void push(::std::variant<::npc::CommandAction, ::npc::UrlAction>&& action);
37
38#ifdef LL_PLAT_C
39 MCAPI void remove(uint64 index);
40#endif
41
42 MCAPI void reset(::std::vector<::std::variant<::npc::CommandAction, ::npc::UrlAction>>&& data);
43
44 MCAPI uint64 size() const;
45
46#ifdef LL_PLAT_C
47 MCAPI uint64 toIndex(uint64 buttonIndex) const;
48#endif
49
50 MCAPI ~ActionContainer();
51 // NOLINTEND
52
53public:
54 // destructor thunk
55 // NOLINTBEGIN
56 MCAPI void $dtor();
57 // NOLINTEND
58};
59
60} // namespace npc
Definition ActionContainer.h:13
Definition CommandAction.h:17
Definition UrlAction.h:11