| 3265 | } |
| 3266 | |
| 3267 | void 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 | |
| 3287 | void MapInstance::stopLuaTimer(uint32_t entity_idx) |
| 3288 | { |
no test coverage detected