Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NpcRequestPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorRuntimeID.h"
7
8struct NpcRequestPacketPayload {
9public:
10 // NpcRequestPacketPayload inner types define
11 enum class RequestType : uchar {
12 SetActions = 0,
13 ExecuteAction = 1,
14 ExecuteClosingCommands = 2,
15 SetName = 3,
16 SetSkin = 4,
17 SetInteractText = 5,
18 ExecuteOpeningCommands = 6,
19 };
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mId;
25 ::ll::TypedStorage<1, 1, ::NpcRequestPacketPayload::RequestType> mType;
26 ::ll::TypedStorage<8, 32, ::std::string> mActions;
27 ::ll::TypedStorage<1, 1, uchar> mActionIndex;
28 ::ll::TypedStorage<8, 32, ::std::string> mSceneName;
29 // NOLINTEND
30
31#ifdef LL_PLAT_S
32#else // LL_PLAT_C
33public:
34 // prevent constructor by default
35 NpcRequestPacketPayload();
36
37#endif
38public:
39 // member functions
40 // NOLINTBEGIN
41#ifdef LL_PLAT_C
42 MCNAPI NpcRequestPacketPayload(::ActorRuntimeID id, ::std::string const& newActions);
43
44 MCNAPI NpcRequestPacketPayload(::ActorRuntimeID id, int actionIndex, ::std::string const& sceneName);
45
46 MCNAPI NpcRequestPacketPayload(
48 ::NpcRequestPacketPayload::RequestType type,
49 ::std::string const& sceneName
50 );
51#endif
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57#ifdef LL_PLAT_C
58 MCNAPI void* $ctor(::ActorRuntimeID id, ::std::string const& newActions);
59
60 MCNAPI void* $ctor(::ActorRuntimeID id, int actionIndex, ::std::string const& sceneName);
61
62 MCNAPI void*
63 $ctor(::ActorRuntimeID id, ::NpcRequestPacketPayload::RequestType type, ::std::string const& sceneName);
64#endif
65 // NOLINTEND
66};
Definition ActorRuntimeID.h:5