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
+11 -1
View File
@@ -10,6 +10,13 @@
#include <map>
#include "RageModelGeometry.h"
#define LUA_Model_METHODS( T ) \
LUA_Actor_METHODS( T ) \
static int playanimation( T* p, lua_State *L ) { p->PlayAnimation(SArg(1),FArg(2)); return 0; } \
#define LUA_Model_METHODS_MAP( T ) \
LUA_Actor_METHODS_MAP( T ) \
LUA_METHOD_MAP( T, playanimation ) \
class Model : public Actor
{
@@ -45,7 +52,10 @@ public:
bool MaterialsNeedNormals() const;
virtual void HandleCommand( const Command &command );
//
// Commands
//
virtual void PushSelf( lua_State *L );
private:
RageModelGeometry *m_pGeometry;