MCPcopy Create free account
hub / github.com/Segs/Segs / startLuaTimer

Method startLuaTimer

Projects/CoX/Servers/MapServer/MapInstance.cpp:3267–3285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3265}
3266
3267void MapInstance::startLuaTimer(uint32_t entity_idx)
3268{
3269 int count = 0;
3270 bool found = false;
3271 for(auto &t: this->m_lua_timers)
3272 {
3273 if(t.m_entity_idx == entity_idx)
3274 {
3275 found = true;
3276 break;
3277 }
3278 ++count;
3279 }
3280 if(found)
3281 {
3282 this->m_lua_timers[count].m_is_enabled = true;
3283 this->m_lua_timers[count].m_start_time = getSecsSince2000Epoch();
3284 }
3285}
3286
3287void MapInstance::stopLuaTimer(uint32_t entity_idx)
3288{

Callers 1

register_GenericTypesMethod · 0.80

Calls 1

getSecsSince2000EpochFunction · 0.85

Tested by

no test coverage detected