use Lua to execute commands
(needs cleanup)
This commit is contained in:
+11
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user