Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static LuaFunctionArgList constructorArgList = { {{ END }, { GEOM, END }}, 2 };
- // Lua constructor
- Spawn::Spawn(lua_State *L) : AbstractSpawn(Point(0,0))
- {
- if(L && checkArgList(L, functionArgs, "Spawn", "Spawn(lua_State *L)") == 1)
- setPos(getPointOrXY(L, 1));
- else if(L && checkArgList(L, functionArgs, "Spawn", "Spawn(lua_State *L)") == 2)
- {
- setPos(getPointOrXY(L, 1));
- setTeam(getInt(L, 2));
- }
- initialize();
- }
Advertisement
Add Comment
Please, Sign In to add comment