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/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/TypedObjectHandle.h"
8#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
9#include "mc/deps/scripting/lifetime_registry/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 public:
42 // member functions
43 // NOLINTBEGIN
45 // NOLINTEND
46
47 public:
48 // destructor thunk
49 // NOLINTBEGIN
50 MCFOLD void $dtor();
51 // NOLINTEND
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
57 ::ll::TypedStorage<8, 16, ::Scripting::WeakLifetimeScope> mScope;
58 ::ll::TypedStorage<8, 16, ::Scripting::TypedObjectHandle<::ScriptModuleMinecraft::ScriptSystemBeforeEvents>>
59 mHandle;
60 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ServerLevel*>> mLevel;
61 ::ll::TypedStorage<
62 8,
63 32,
66 1,
68 mBeforeWatchdogTerminateSignal;
69 ::ll::TypedStorage<
70 8,
71 32,
74 2,
76 mBeforeModuleStartupSignal;
77 ::ll::TypedStorage<
78 8,
79 32,
82 1,
84 mBeforeModuleShutdownSignal;
85 // NOLINTEND
86
87public:
88 // prevent constructor by default
89 ScriptSystemBeforeEvents();
90
91public:
92 // member functions
93 // NOLINTBEGIN
94 MCAPI ScriptSystemBeforeEvents(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::ServerLevel*> level);
95
96 MCAPI ::std::vector<::ScriptModuleMinecraft::ScriptSystemBeforeEvents::SignalNameSubscriberCount>
97 getFineGrainedSignalSubscriberStats() const;
98
99 MCAPI void onBeforeModuleShutdown(
101 );
102
103 MCAPI void onBeforeModuleStartup(
105 );
106
107 MCAPI void onBeforeWatchdogTerminate(
109 beforeWatchdogTerminateEvent
110 );
111
112 MCAPI void
114
115 MCAPI ~ScriptSystemBeforeEvents();
116 // NOLINTEND
117
118public:
119 // static functions
120 // NOLINTBEGIN
121 MCAPI static void bind(::Scripting::ModuleBindingBuilder& moduleBuilder);
122 // NOLINTEND
123
124public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCAPI void* $ctor(::Scripting::WeakLifetimeScope const& scope, ::gsl::not_null<::ServerLevel*> level);
128 // NOLINTEND
129
130public:
131 // destructor thunk
132 // NOLINTBEGIN
133 MCAPI void $dtor();
134 // NOLINTEND
135};
136
137} // namespace ScriptModuleMinecraft
Definition ScriptFilteredEventSignal.h:8
Definition ModuleBindingBuilder.h:31
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:14
Definition ServerLevel.h:59
Definition EmptyFilter.h:12
Definition ScriptModuleShutdownBeforeEvent.h:12
Definition ScriptModuleStartupBeforeEvent.h:22
Definition ScriptWatchdogTerminateBeforeEvent.h:17
Definition TypedObjectHandle.h:8