World.cs 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Common.Config;
  2. using Model;
  3. namespace World
  4. {
  5. public class World
  6. {
  7. private static readonly World instance = new World();
  8. private readonly ConfigManager configManager = new ConfigManager();
  9. private readonly GameObjectManager gameObjectManager = new GameObjectManager();
  10. public static World Instance
  11. {
  12. get
  13. {
  14. return instance;
  15. }
  16. }
  17. private World()
  18. {
  19. configManager.Load(typeof(World).Assembly);
  20. }
  21. public ConfigManager ConfigManager
  22. {
  23. get
  24. {
  25. return this.configManager;
  26. }
  27. }
  28. public GameObjectManager GameObjectManager
  29. {
  30. get
  31. {
  32. return this.gameObjectManager;
  33. }
  34. }
  35. }
  36. }