LeviLamina
Loading...
Searching...
No Matches
ScriptActorType.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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9
10// auto generated forward declare list
11// clang-format off
12class ActorDefinition;
13namespace ScriptModuleMinecraft { class ScriptDynamicPropertiesDefinition; }
14namespace Scripting { class WeakLifetimeScope; }
15namespace Scripting { struct ClassBinding; }
16// clang-format on
17
18namespace ScriptModuleMinecraft {
19
20class ScriptActorType {
21public:
22 // ScriptActorType inner types declare
23 // clang-format off
24 struct Key;
25 // clang-format on
26
27 // ScriptActorType inner types define
28 struct Key {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 48, ::HashedString> mId;
33 // NOLINTEND
34
35 public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI ~Key();
39 // NOLINTEND
40
41 public:
42 // destructor thunk
43 // NOLINTBEGIN
44 MCFOLD void $dtor();
45 // NOLINTEND
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<8, 8, ::std::reference_wrapper<::ActorDefinition>> mActorDefinition;
52 // NOLINTEND
53
54#ifdef LL_PLAT_S
55#else // LL_PLAT_C
56public:
57 // prevent constructor by default
58 ScriptActorType();
59
60#endif
61public:
62 // member functions
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCAPI explicit ScriptActorType(::ActorDefinition& definition);
66#endif
67
68 MCAPI ::Scripting::Result_deprecated<void> addDynamicPropertiesDefinition(
69 ::ScriptModuleMinecraft::ScriptDynamicPropertiesDefinition const& dynamicPropertiesDefinition
70 );
71
72 MCFOLD ::std::reference_wrapper<::ActorDefinition> getDefinition() const;
73
74 MCAPI ::std::string getId() const;
75
76 MCAPI ::std::string getLocalizationKey() const;
77
78 MCAPI bool operator==(::ScriptModuleMinecraft::ScriptActorType const& other) const;
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCAPI static ::Scripting::ClassBinding bind();
85
86 MCAPI static ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorType>
87 getOrCreateHandle(::Scripting::WeakLifetimeScope const& scope, ::ActorDefinition& actorDef);
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93#ifdef LL_PLAT_C
94 MCFOLD void* $ctor(::ActorDefinition& definition);
95#endif
96 // NOLINTEND
97};
98
99} // namespace ScriptModuleMinecraft
Definition ActorDefinition.h:83
Definition ScriptActorType.h:20
Definition ScriptDynamicPropertiesDefinition.h:21
Definition WeakLifetimeScope.h:14
Definition ScriptActorType.h:28
Definition ClassBinding.h:19