World.cs 907 B

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