mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-29 08:17:59 +03:00
Split display strings from GameLogicScript.
This commit is contained in:
parent
8a4ca06b25
commit
f9f0ac5839
15 changed files with 188 additions and 124 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "GameLogicScript.h"
|
||||
#include "GameFlowScript.h"
|
||||
#include "Entities/Entities.h"
|
||||
#include "Strings/StringsHandler.h"
|
||||
|
||||
sol::state g_solState;
|
||||
|
||||
|
@ -26,6 +27,11 @@ ScriptInterfaceEntities* ScriptInterfaceState::CreateEntities()
|
|||
return new GameEntities(&g_solState);
|
||||
}
|
||||
|
||||
ScriptInterfaceStringsHandler* ScriptInterfaceState::CreateStringsHandler()
|
||||
{
|
||||
return new StringsHandler(&g_solState);
|
||||
}
|
||||
|
||||
void ScriptInterfaceState::Init()
|
||||
{
|
||||
g_solState.open_libraries(sol::lib::base, sol::lib::math);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue