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(); }
public Respawner() { Instance = this; GameController.Instance.OnUpdate += Instance_OnUpdate; }