LeviLamina
Loading...
Searching...
No Matches
ScriptSystemBeforeEvents.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
7#include "mc/deps/script_core/lifetime_registry/scripting/TypedObjectHandle.h"
8#include "mc/deps/script_core/lifetime_registry/scripting/WeakHandleFromThis.h"
9#include "mc/deps/script_core/lifetime_registry/scripting/WeakLifetimeScope.h"
10#include "mc/scripting/modules/minecraft/events/ScriptFilteredEventSignal.h"
11
12// auto generated forward declare list
13// clang-format off
14class ServerLevel;
15namespace ScriptModuleMinecraft { struct EmptyFilter; }
16namespace ScriptModuleMinecraft { struct ScriptModuleShutdownBeforeEvent; }
17namespace ScriptModuleMinecraft { struct ScriptModuleStartupBeforeEvent; }
18namespace ScriptModuleMinecraft { struct ScriptWatchdogTerminateBeforeEvent; }
19namespace Scripting { class ModuleBindingBuilder; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24class ScriptSystemBeforeEvents
25: public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptSystemBeforeEvents> {
26public:
27 // ScriptSystemBeforeEvents inner types declare
28 // clang-format off
30 // clang-format on
31
32 // ScriptSystemBeforeEvents inner types define
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 32, ::std::string> name;
38 ::ll::TypedStorage<8, 8, uint64> count;
39 // NOLINTEND
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
46 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptSystemBeforeEvents>>
47 mHandle;
48 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ServerLevel*>> mLevel;
49 ::ll::TypedStorage<
50 8,
51 32,
54 1,
56 mBeforeWatchdogTerminateSignal;
57 ::ll::TypedStorage<
58 8,
59 32,
62 2,
64 mBeforeModuleStartupSignal;
65 ::ll::TypedStorage<
66 8,
67 32,
70 1,
72 mBeforeModuleShutdownSignal;
73 // NOLINTEND
74
75public:
76 // prevent constructor by default
77 ScriptSystemBeforeEvents();
78
79public:
80 // member functions
81 // NOLINTBEGIN
82 MCAPI ScriptSystemBeforeEvents(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::ServerLevel*> level);
83
84 MCAPI ::std::vector<::ScriptModuleMinecraft::ScriptSystemBeforeEvents::SignalNameSubscriberCount>
85 getFineGrainedSignalSubscriberStats() const;
86
87 MCAPI void onBeforeModuleShutdown(
89 );
90
91 MCAPI void onBeforeModuleStartup(
93 );
94
95 MCAPI void onBeforeWatchdogTerminate(
97 beforeWatchdogTerminateEvent
98 );
99
100 MCAPI ~ScriptSystemBeforeEvents();
101 // NOLINTEND
102
103public:
104 // static functions
105 // NOLINTBEGIN
106 MCAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112 MCAPI void* $ctor(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::ServerLevel*> level);
113 // NOLINTEND
114
115public:
116 // destructor thunk
117 // NOLINTBEGIN
118 MCAPI void $dtor();
119 // NOLINTEND
120};
121
122} // namespace ScriptModuleMinecraft
Definition ScriptFilteredEventSignal.h:8
Definition ModuleBindingBuilder.h:22
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ServerLevel.h:57
Definition EmptyFilter.h:12
Definition ScriptModuleShutdownBeforeEvent.h:12
Definition ScriptModuleStartupBeforeEvent.h:23
Definition ScriptWatchdogTerminateBeforeEvent.h:15