MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / G_playEvent

Function G_playEvent

engine/src/game.cpp:273–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273bool G_playEvent(std::string name, bool loop)
274{
275 for (int i = 0; i < game.events.size(); i++)
276 {
277 if (!name.compare(game.events[i].name))
278 {
279 game.events[i].Play(loop);
280 return true;
281 }
282 }
283 return false;
284}
285
286bool G_stopEvent(std::string name)
287{

Callers 3

U_Load_demoFunction · 0.85
G_initializeEventsFunction · 0.85
G_initializeMenusFunction · 0.85

Calls 1

PlayMethod · 0.80

Tested by

no test coverage detected