Guest User

Untitled

a guest
Jan 12th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1.  
  2. // Lua constructor
  3. Spawn::Spawn(lua_State *L) : AbstractSpawn(Point(0,0))
  4. {
  5. static LuaFunctionArgList constructorArgList = { {{ END }, { GEOM, END }, { GEOM, TEAM_INDX, END }}, 3 };
  6. S32 profile = checkArgList(L, functionArgs, "Spawn", "constructor");
  7. initialize();
  8. if(L && profile == 1)
  9. setGeom(getPointOrXY(L, 1)); //setPos
  10. else if(L && profile == 2)
  11. {
  12. setPos(getPointOrXY(L, 1));
  13. setTeam(getInt(L, 2));
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment