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 ScriptPlayer; }
17namespace Scripting { class WeakLifetimeScope; }
18// clang-format on
19
20namespace ScriptModuleMinecraft {
21
22struct ScriptActorData {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mRef;
27 ::ll::TypedStorage<4, 4, ::ScriptModuleMinecraft::ScriptEntityRefType> mActorType;
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mId;
29 ::ll::TypedStorage<8, 48, ::HashedString> mTypeId;
30 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ServerLevel*>> mLevel;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 ScriptActorData();
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI ScriptActorData(::ScriptModuleMinecraft::ScriptActorData const&);
41
42 MCAPI explicit ScriptActorData(::Actor const& actor);
43
44 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>
45 getPlayer(::Scripting::WeakLifetimeScope const& scope) const;
46
47 MCAPI ::ScriptModuleMinecraft::ScriptActorData& operator=(::ScriptModuleMinecraft::ScriptActorData&&);
48
49 MCAPI ::ScriptModuleMinecraft::ScriptActorData& operator=(::ScriptModuleMinecraft::ScriptActorData const&);
50
51 MCAPI ~ScriptActorData();
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(::ScriptModuleMinecraft::ScriptActorData const&);
58
59 MCAPI void* $ctor(::Actor const& actor);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67};
68
69} // namespace ScriptModuleMinecraft
Definition Actor.h:105
Definition ScriptPlayer.h:53
Definition WeakLifetimeScope.h:7
Definition ServerLevel.h:50
Definition ScriptActorData.h:22