use Lua to execute commands

(needs cleanup)
This commit is contained in:
Chris Danford
2005-01-26 11:21:43 +00:00
parent 1f00c84293
commit 8555a6da45
60 changed files with 816 additions and 246 deletions
+12
View File
@@ -12,6 +12,11 @@
#include <cerrno>
#include "ModelManager.h"
#include "Foreach.h"
#include "LuaBinding.h"
// lua start
LUA_REGISTER_CLASS( Model )
// lua end
const float FRAMES_PER_SECOND = 30;
const CString DEFAULT_ANIMATION_NAME = "default";
@@ -750,6 +755,7 @@ void Model::SetSecondsIntoAnimation( float fSeconds )
}
}
/*
void Model::HandleCommand( const Command &command )
{
BeginHandleArgs;
@@ -767,6 +773,7 @@ void Model::HandleCommand( const Command &command )
EndHandleArgs;
}
*/
bool Model::MaterialsNeedNormals() const
{
@@ -778,6 +785,11 @@ bool Model::MaterialsNeedNormals() const
return false;
}
void Model::PushSelf( lua_State *L )
{
Luna<Model,LuaModel>::Push( L, this );
}
/*
* (c) 2003-2004 Chris Danford
* All rights reserved.