LeviLamina
Loading...
Searching...
No Matches
ScriptTickSignal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/script_engine/Closure.h"
7
8// auto generated forward declare list
9// clang-format off
11// clang-format on
12
13namespace ScriptModuleMinecraft {
14
16public:
17 // ScriptTickSignal inner types declare
18 // clang-format off
19 struct PendingSubscribe;
20 struct PendingUnsubscribe;
21 struct Slot;
22 // clang-format on
23
24 // ScriptTickSignal inner types define
25 enum class IntervalStatus : uint {
26 Once = 0,
27 Repeat = 1,
28 Expired = 2,
29 };
30
31 struct Slot {
32 public:
33 // member variables
34 // NOLINTBEGIN
41 // NOLINTEND
42
43 public:
44 // prevent constructor by default
45 Slot& operator=(Slot const&);
46 Slot(Slot const&);
47 Slot();
48
49 public:
50 // member functions
51 // NOLINTBEGIN
53
54 MCAPI ~Slot();
55 // NOLINTEND
56
57 public:
58 // constructor thunks
59 // NOLINTBEGIN
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCFOLD void $dtor();
67 // NOLINTEND
68 };
69
71 public:
72 // member variables
73 // NOLINTBEGIN
75 // NOLINTEND
76
77 public:
78 // prevent constructor by default
79 PendingSubscribe& operator=(PendingSubscribe const&);
82
83 public:
84 // member functions
85 // NOLINTBEGIN
86 MCAPI ~PendingSubscribe();
87 // NOLINTEND
88
89 public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCFOLD void $dtor();
93 // NOLINTEND
94 };
95
97 public:
98 // member variables
99 // NOLINTBEGIN
101 // NOLINTEND
102
103 public:
104 // prevent constructor by default
105 PendingUnsubscribe& operator=(PendingUnsubscribe const&);
108 };
109
110public:
111 // member variables
112 // NOLINTBEGIN
117 // NOLINTEND
118
119public:
120 // prevent constructor by default
121 ScriptTickSignal& operator=(ScriptTickSignal const&);
124
125public:
126 // member functions
127 // NOLINTBEGIN
128 MCAPI void _processActive(
129 ::std::vector<::ScriptModuleMinecraft::ScriptTickSignal::Slot>& slots,
130 uint currentTick,
131 ::ScriptDeferredFlushTracker& deferredTracker
132 );
133
134 MCAPI void _processPending(
135 ::std::vector<::std::variant<
138 ::std::vector<::ScriptModuleMinecraft::ScriptTickSignal::Slot>& activeList
139 );
140
141 MCAPI uint scheduleInterval(::Scripting::Closure<void()>&& closure, uint interval, uint currentTick);
142
143 MCAPI uint scheduleTimeout(::Scripting::Closure<void()>&& closure, uint delay, uint currentTick);
144
145 MCAPI uint scheduleTimeout(::std::function<void()> function, uint delay, uint currentTick);
146
147 MCAPI uint scheduleTimeoutSafe(::Scripting::Closure<void()>&& closure, uint currentTick);
148 // NOLINTEND
149};
150
151} // namespace ScriptModuleMinecraft
Definition ScriptDeferredFlushTracker.h:5
Definition ScriptTickSignal.h:15
Definition Closure.h:8
Definition ScriptTickSignal.h:31
Definition Alias.h:14