LeviLamina
Loading...
Searching...
No Matches
ScriptActorTypes.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7
8// auto generated forward declare list
9// clang-format off
10class Level;
11namespace ScriptModuleMinecraft { class ScriptActorType; }
12namespace Scripting { class ModuleBindingBuilder; }
13namespace Scripting { class WeakLifetimeScope; }
14// clang-format on
15
16namespace ScriptModuleMinecraft {
17
19public:
20 // ScriptActorTypes inner types define
21 using ActorTypesMap = ::std::
22 unordered_map<::std::string, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorType>>;
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<
28 8,
29 64,
30 ::std::unordered_map<
31 ::std::string,
33 mActorTypes;
34 ::ll::TypedStorage<8, 8, ::std::reference_wrapper<::Level const>> mLevel;
35 ::ll::TypedStorage<1, 1, bool> mRegisteredTypes;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI void add(::Scripting::WeakLifetimeScope& scope, ::std::string const& actorName);
42
43 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorType>>
44 get(::std::string const& actorName);
45
46 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActorType>>
47 getAll(::Scripting::WeakLifetimeScope& scope);
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder, ::Level const& level);
54 // NOLINTEND
55};
56
57} // namespace ScriptModuleMinecraft
Definition Level.h:239
Definition ScriptActorTypes.h:18
Definition ModuleBindingBuilder.h:30
Definition StrongTypedObjectHandle.h:8
Definition WeakLifetimeScope.h:12