Guest User

Untitled

a guest
Jan 10th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /////
  2. // Lua interface
  3. /**
  4. * @luafunc Spawn::Spawn()
  5. * @luafunc Spawn::Spawn(geom)
  6. * @luafunc Spawn::Spawn(geom, speed)
  7. * @luaclass Spawn
  8. * @brief Marks locations where ships and robots should spawn.
  9. * @geom The geometry of Spawns is a single point.
  10. */
  11. // Fn name Param profiles Profile count
  12. #define LUA_METHODS(CLASS, METHOD) \
  13. METHOD(CLASS, constructor, ARRAYDEF({{ END }, { GEOM, END }, { GEOM, TEAM_INDX, END }}), 2 ) \
  14.  
  15. GENERATE_LUA_METHODS_TABLE(Spawn, LUA_METHODS);
  16. GENERATE_LUA_FUNARGS_TABLE(Spawn, LUA_METHODS);
  17.  
  18. #undef LUA_METHODS
  19.  
  20.  
  21. const char *Spawn::luaClassName = "Spawn";
  22. REGISTER_LUA_SUBCLASS(Spawn, BfObject);
Advertisement
Add Comment
Please, Sign In to add comment