MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ApplyActionQueue

Function ApplyActionQueue

TombEngine/Specific/Input/Input.cpp:199–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void ApplyActionQueue()
200 {
201 for (int i = 0; i < (int)ActionID::Count; i++)
202 {
203 auto actionID = (ActionID)i;
204 switch (ActionQueueMap[actionID])
205 {
206 default:
207 case ActionQueueState::None:
208 break;
209
210 case ActionQueueState::Update:
211 ActionMap[actionID].Update(true);
212 break;
213
214 case ActionQueueState::Clear:
215 ActionMap[actionID].Clear();
216 break;
217 }
218 }
219
220 for (auto& [actionID, queue] : ActionQueueMap)
221 queue = ActionQueueState::None;
222 }
223
224 static bool TestBoundKey(int keyID)
225 {

Callers 2

UpdateInputActionsFunction · 0.85
GamePhaseFunction · 0.85

Calls 2

UpdateMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected