예제 #1
0
        public void Init(ServerConfig config)
        {
            Create();
            ConfigData = config;

            Cache = BZDatabase.Cache;

            Flags.Set(this);
            Shots.Set(this);
            Chat.Set(this);
            Players.Set(this);
        }
예제 #2
0
        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();
        }
예제 #3
0
        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;
        }