Register.h 703 B

123456789101112131415161718
  1. //whenever you want to have a type exposed to lua, you have to have it in here as
  2. //LuaType<type>::Register(L);
  3. //It will be #included in the correct place in Interpreter.cpp, as to make this more like a macro file
  4. //THE ORDER DOES MATTER
  5. //You have to register a base class before any others can inherit from it
  6. LuaType<Vector2i>::Register(L);
  7. LuaType<Vector2f>::Register(L);
  8. LuaType<Colourf>::Register(L);
  9. LuaType<Colourb>::Register(L);
  10. LuaType<Log>::Register(L);
  11. LuaType<Element>::Register(L);
  12. //things that inherit from element
  13. LuaType<Document>::Register(L);
  14. LuaType<ElementStyle>::Register(L);
  15. LuaType<Event>::Register(L);
  16. LuaType<Context>::Register(L);
  17. LuaType<rocket>::Register(L);