Ejemplo n.º 1
0
        private void LoadManagers()
        {
            var     configJson = File.ReadAllText("data/config.json");
            dynamic config     = JsonConvert.DeserializeObject(configJson);

            MongoCRUD.connString = config.db_string;

            MapsManager    maps      = new MapsManager();
            ItemsManager   items     = new ItemsManager();
            SpawnsManager  spawns    = new SpawnsManager();
            UsersManager   players   = new UsersManager();
            GameController game      = new GameController();
            Respawner      respawner = new Respawner();
        }
Ejemplo n.º 2
0
 public Respawner()
 {
     Instance = this;
     GameController.Instance.OnUpdate += Instance_OnUpdate;
 }