Original Post
I'm programming a game in C++, and I've decided to integrate Lua into it to separate several parts of the game. Currently my ideas of implementing it is to create a ScriptManager singleton class to handle all scripts in the game. This singleton will maintain a single Lua state which will be shared across every game object that are exposed to Lua. Then any calls to scripts will refer to this ScriptManager class and call something like ScriptManager::DoScript("script.lua");
[font=arial,helvetica,sans-serif]How do you guys manage scripts in your game?[/font]
[font=arial,helvetica,sans-serif]How do you guys manage scripts in your game?[/font]