I'd hoped to not need explicit initialization of Lua, but it's more

trouble than it's worth.

Add LuaManager::RunScriptFile, LuaManager::RunScript, LuaManager::Init.
This commit is contained in:
Glenn Maynard
2005-01-19 23:33:19 +00:00
parent 0f4aec8584
commit dd3aa1c12e
3 changed files with 88 additions and 25 deletions
+8
View File
@@ -10,6 +10,14 @@ public:
void PrepareExpression( CString &sInOut ); // strip "//" comments and "+"
bool RunScriptFile( const CString &sFile );
/* Reset the environment, freeing any globals left over by previously executed scripts. */
void Init();
/* Run a complete script in the global environment, which returns no value. */
bool RunScript( const CString &sScript );
/* Run an expression in the global environment, returning the given type. */
bool RunExpressionB( const CString &str );
float RunExpressionF( const CString &str );