| 539 | } |
| 540 | |
| 541 | bool InitializeScriptLibs(const ScriptLibContext& context) |
| 542 | { |
| 543 | lua_State* L = context.m_LuaState; |
| 544 | |
| 545 | int top = lua_gettop(L); |
| 546 | (void)top; |
| 547 | |
| 548 | bool result = true; |
| 549 | |
| 550 | ScriptBufferRegister(context); |
| 551 | ScriptLabelRegister(context); |
| 552 | ScriptParticleFXRegister(context); |
| 553 | ScriptTileMapRegister(context); |
| 554 | ScriptPhysicsRegister(context); |
| 555 | ScriptFactoryRegister(context); |
| 556 | ScriptCollectionFactoryRegister(context); |
| 557 | ScriptSpriteRegister(context); |
| 558 | ScriptSoundRegister(context); |
| 559 | ScriptResourceRegister(context); |
| 560 | ScriptWindowRegister(context); |
| 561 | ScriptCollectionProxyRegister(context); |
| 562 | ScriptSysGameSysRegister(context); |
| 563 | assert(top == lua_gettop(L)); |
| 564 | return result; |
| 565 | } |
| 566 | |
| 567 | void FinalizeScriptLibs(const ScriptLibContext& context) |
| 568 | { |