| 248 | } |
| 249 | |
| 250 | void LevelScriptLoader::OnLevelReload() |
| 251 | { |
| 252 | asIScriptFunction* func = GetMainModule()->GetFunctionByDecl("void onLevelReload()"); |
| 253 | if (func == nullptr) { |
| 254 | return; |
| 255 | } |
| 256 | |
| 257 | OnBeforeScriptCall(); |
| 258 | asIScriptContext* ctx = GetEngine()->RequestContext(); |
| 259 | |
| 260 | ctx->Prepare(func); |
| 261 | std::int32_t r = ctx->Execute(); |
| 262 | if (r == asEXECUTION_EXCEPTION) { |
| 263 | AS_LOG_EXCEPTION(ctx); |
| 264 | } |
| 265 | |
| 266 | GetEngine()->ReturnContext(ctx); |
| 267 | OnAfterScriptCall(); |
| 268 | } |
| 269 | |
| 270 | void LevelScriptLoader::OnLevelUpdate(float timeMult) |
| 271 | { |
no test coverage detected