Ejemplo n.º 1
0
        public SendSnapshotManager(Contexts contexts)
        {
            _contexts = contexts;
            _globalFreeMoveEntities =
                _contexts.freeMove.GetGroup(FreeMoveMatcher.AllOf(FreeMoveMatcher.GlobalFlag,
                                                                  FreeMoveMatcher.EntityAdapter));
            _globalWeaponEntities = _contexts.weapon.GetGroup(WeaponMatcher.AllOf(WeaponMatcher.EntityKey, WeaponMatcher.EntityAdapter));
#if ENABLE_NEW_SENDSNAPSHOT_THREAD
            InitThreads();
#endif
        }
Ejemplo n.º 2
0
        public SendSnapshotManager(Contexts contexts)
        {
            SendSnapshotWait        = SingletonManager.Get <DurationHelp>().GetProfileInfo(CustomProfilerStep.SendSnapshotWait);
            _contexts               = contexts;
            _globalFreeMoveEntities =
                _contexts.freeMove.GetGroup(FreeMoveMatcher.AllOf(FreeMoveMatcher.GlobalFlag,
                                                                  FreeMoveMatcher.EntityAdapter));
            _globalWeaponEntities =
                _contexts.weapon.GetGroup(WeaponMatcher.AllOf(WeaponMatcher.EntityKey,
                                                              WeaponMatcher.EntityAdapter));
            _playerEntities = _contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Network));
#if ENABLE_NEW_SENDSNAPSHOT_THREAD
            InitThreads();
#endif
        }