public void Init(ServerConfig config) { Create(); ConfigData = config; Cache = BZDatabase.Cache; Flags.Set(this); Shots.Set(this); Chat.Set(this); Players.Set(this); }
public void Create() { GameTime = new Clock(); BZDatabase = new Database(); Cache = null; World = new GameWorld(); Flags = new FlagManager(); Players = new PlayerManager(); Chat = new ChatManager(); Shots = new ShotManager(); }
public void Set(GameState state) { IsPublic = state.IsPublic; GameTime = state.GameTime; BZDatabase = state.BZDatabase; Cache = BZDatabase.Cache; World = state.World; Flags = state.Flags; Players = state.Players; Chat = state.Chat; Shots = state.Shots; ConfigData = state.ConfigData; }