コード例 #1
0
        public override void DoStart()
        {
            snapshotFrameInterval = 1;
            if (_constStateService.IsVideoMode)
            {
                snapshotFrameInterval = _constStateService.SnapshotFrameInterval;
            }

            _cmdBuffer  = new FrameBuffer(this, _networkService, 2000, snapshotFrameInterval, MaxPredictFrameCount);
            _world      = new World();
            _dumpHelper = new DumpHelper(_serviceContainer, _world);
            _hashHelper = new HashHelper(_serviceContainer, _world, _networkService, _cmdBuffer);
        }
コード例 #2
0
        public override void DoStart()
        {
            this.snapshotFrameInterval = 1;
            bool isVideoMode = this._globalStateService.IsVideoMode;

            if (isVideoMode)
            {
                this.snapshotFrameInterval = this._globalStateService.SnapshotFrameInterval;
            }
            this._cmdBuffer = new FrameBuffer(this, this._networkService, 2000, this.snapshotFrameInterval, 30);
            object contexts        = this._globalStateService.Contexts;
            object logicFeatureObj = this._ecsFactoryService.CreateSystems(contexts, this._serviceContainer);

            this._world      = (this.FuncCreateWorld(this._serviceContainer, contexts, logicFeatureObj) as World);
            this._hashHelper = new HashHelper(this._serviceContainer, this._world, this._networkService, this._cmdBuffer);
            this._dumpHelper = new DumpHelper(this._serviceContainer, this._world, this._hashHelper);
        }