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
        }
Exemple #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
        }
 protected override IGroup <FreeMoveEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.freeMove.GetGroup(FreeMoveMatcher.AllOf(FreeMoveMatcher.Position,
                                                             FreeMoveMatcher.UnityGameObject)));
 }
 public FreeObjectCleanUpSystem(FreeMoveContext context)
 {
     _group = context.GetGroup(FreeMoveMatcher.AllOf(FreeMoveMatcher.FlagDestroy));
 }