LeviLamina
Loading...
Searching...
No Matches
ScriptActorData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/deps/ecs/WeakEntityRef.h"
8#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/scripting/modules/minecraft/actor/ScriptEntityRefType.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class ServerLevel;
16namespace ScriptModuleMinecraft { class ScriptActor; }
17namespace ScriptModuleMinecraft { class ScriptPlayer; }
18namespace Scripting { class WeakLifetimeScope; }
19// clang-format on
20
21namespace ScriptModuleMinecraft {
22
23struct ScriptActorData {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mRef;
28 ::ll::TypedStorage<4, 4, ::ScriptModuleMinecraft::ScriptEntityRefType> mActorType;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mId;
30 ::ll::TypedStorage<8, 48, ::HashedString> mTypeId;
31 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ServerLevel*>> mLevel;
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 ScriptActorData();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI explicit ScriptActorData(::Actor const& actor);
42
43 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>
44 getActor(::Scripting::WeakLifetimeScope const& scope) const;
45
46 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>
47 getPlayer(::Scripting::WeakLifetimeScope const& scope) const;
48
49 MCAPI ~ScriptActorData();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::Actor const& actor);
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCFOLD void $dtor();
62 // NOLINTEND
63};
64
65} // namespace ScriptModuleMinecraft
Definition Actor.h:123
Definition ScriptActor.h:69
Definition ScriptPlayer.h:56
Definition WeakLifetimeScope.h:14
Definition ServerLevel.h:59