Exemplo n.º 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);
        }
Exemplo n.º 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();
        }
Exemplo n.º 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;
        }