You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 14 година
пре 12 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
пре 14 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. #include <lol/engine-internal.h>
  11. #include <cstring>
  12. #include <cstdlib>
  13. #include <ctype.h>
  14. namespace lol
  15. {
  16. /*
  17. * World implementation class
  18. */
  19. class WorldData
  20. {
  21. friend class World;
  22. lua_State *m_lua_state;
  23. };
  24. static WorldData g_world_data;
  25. World g_world;
  26. /*
  27. * Public World class
  28. */
  29. World::World()
  30. : LuaLoader()
  31. {
  32. g_world_data.m_lua_state = GetLuaState();
  33. }
  34. World::~World()
  35. {
  36. }
  37. } /* namespace lol */