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