protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.AppearanceInterface,
                                                         PlayerMatcher.GamePlay,
                                                         PlayerMatcher.NetworkAnimator,
                                                         PlayerMatcher.ThirdPersonAnimator).NoneOf(PlayerMatcher.FlagSelf)));
 }
Пример #2
0
 public FakePunchSmoothSystem(Contexts contexts)
 {
     this._players = contexts.player.GetGroup(PlayerMatcher.AllOf(new IMatcher <PlayerEntity>[]
     {
         PlayerMatcher.CameraOwner
     }));
     this._timeContext = contexts.time;
 }
Пример #3
0
 // Start is called before the first frame update
 void Start()
 {
     instance                 = this;
     possibleMatches          = new List <PlayerInfo>();
     allPlayerInfos           = new PlayerInfo[] { InesInfo, MarenInfo, SiobhanInfo, AlexandraInfo, SylviaInfo };
     possibleMatches          = allPlayerInfos.ToList();
     matchesSelectedThisRound = new List <PlayerInfo>();
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.AppearanceInterface,
                                                         PlayerMatcher.GamePlay,
                                                         PlayerMatcher.ThirdPersonAppearance,
                                                         PlayerMatcher.PredictedAppearance,
                                                         PlayerMatcher.LatestAppearance).NoneOf(PlayerMatcher.FlagSelf)));
 }
Пример #5
0
        public override void OnStart()
        {
            base.OnStart();
            _contexts = mEntity.robot.Wapper.GameContexts as Contexts;

            playerContext = _contexts.player;
            playerGroup   =
                playerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Position, PlayerMatcher.ThirdPersonModel));
        }
Пример #6
0
 public VehicleExecutionSelector(Contexts contexts)
 {
     VehicleContext                = contexts.vehicle;
     PlayerContext                 = contexts.player;
     _activeVehicleCache           = new List <Entity>();
     Vehicles                      = VehicleContext.GetGroup(VehicleMatcher.AllOf(VehicleMatcher.GameObject, VehicleMatcher.Position));
     _players                      = PlayerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.ThirdPersonModel, PlayerMatcher.GamePlay));
     _ignorePlayerVehicleCollision = false;
     SqrPhysicsDistance            = 150.0f * 150.0f;
 }
Пример #7
0
 public RobotsManager(Contexts contexts, IRoomManager roomManager)
 {
     _roomManager = roomManager;
     _player      = contexts.player;
     _humanGroup  = _player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Network, PlayerMatcher.PlayerInfo)
                                     .NoneOf(PlayerMatcher.Robot));
     _robotGroup =
         _player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Network, PlayerMatcher.PlayerInfo,
                                              PlayerMatcher.Robot));
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.AppearanceInterface,
                                                         PlayerMatcher.NetworkAnimator,
                                                         PlayerMatcher.ThirdPersonAnimator,
                                                         PlayerMatcher.Orientation,
                                                         PlayerMatcher.ThirdPersonAppearance,
                                                         PlayerMatcher.PredictedAppearance,
                                                         PlayerMatcher.LatestAppearance,
                                                         PlayerMatcher.Position).NoneOf(PlayerMatcher.FlagSelf)));
 }
Пример #9
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));
            _playerEntities       = _contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Network));
#if ENABLE_NEW_SENDSNAPSHOT_THREAD
            InitThreads();
#endif
        }
Пример #10
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
        }
 public ThrowingSimulationSystem(
     Contexts contexts,
     ICompensationWorldFactory compensationWorldFactory,
     ThrowingHitHandler hitHandler)
 {
     _contexts                 = contexts;
     _layerMask                = UnityLayers.SceneCollidableLayerMask | UnityLayerManager.GetLayerIndex(EUnityLayerName.UI);//BulletLayers.GetBulletLayer();
     _moveSimulator            = new ThrowingMoveSimulator(20, contexts.player);
     _compensationWorldFactory = compensationWorldFactory;
     _throwingHitHandler       = hitHandler;
     //all throwings
     _throwings = _contexts.throwing.GetGroup(ThrowingMatcher.AllOf(ThrowingMatcher.ThrowingData));
     //all vehicles
     _vehicles = _contexts.vehicle.GetGroup(VehicleMatcher.AllOf(VehicleMatcher.GameObject));
     //all players
     _players = _contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FirstPersonModel, PlayerMatcher.ThirdPersonModel));
 }
Пример #12
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.EntityAdapter, PlayerMatcher.HitBox)));
 }
Пример #13
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.CameraFinalOutputNew,
                                                         PlayerMatcher.Position, PlayerMatcher.GamePlay)));
 }
 protected override ICollector <PlayerEntity> GetTrigger(IContext <PlayerEntity> context)
 {
     return(context.CreateCollector(PlayerMatcher.AllOf(PlayerMatcher.GamePlay, PlayerMatcher.PlayerWeaponState)));
 }
Пример #15
0
 public NavMeshBridgeSystem(PlayerContext playerContext)
 {
     _playerContext = playerContext;
     _group         = _playerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Robot,
                                                                  PlayerMatcher.ThirdPersonModel));
 }
Пример #16
0
 public UserCmdExecuteSystemHandler(Contexts serverContexts)
 {
     _serverContexts = serverContexts;
     _players        = serverContexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FirstPersonModel, PlayerMatcher.ThirdPersonModel,
                                                                          PlayerMatcher.State, PlayerMatcher.HitBox, PlayerMatcher.PlayerWeaponState));
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.GamePlay,
                                                         PlayerMatcher.PlayerGameState).NoneOf(PlayerMatcher.FlagSelf)));
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.ThirdPersonModel).NoneOf(PlayerMatcher.Raycast)));
 }
Пример #19
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.PlayerClientUpdate, PlayerMatcher.ThrowingAction)));
 }
Пример #20
0
 public ClientPlayerCameraInitSystem(
     PlayerContext playerContext)
 {
     _iGroup = playerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.UserCmd, PlayerMatcher.FlagSelf)
                                      .NoneOf(PlayerMatcher.CameraObj));
 }
Пример #21
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FlagAutoMove, PlayerMatcher.ThirdPersonModel, PlayerMatcher.Position, PlayerMatcher.CharacterContoller, PlayerMatcher.GamePlay)));
 }
Пример #22
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.CharacterContoller, PlayerMatcher.FlagSelf)));
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.AppearanceInterface,
                                                         PlayerMatcher.GamePlay).NoneOf(PlayerMatcher.FlagSelf)));
 }
 public ServerRemoteEventInitSystem(Contexts contexts)
 {
     _group    = contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.RemoteEvents));
     _contexts = contexts;
 }
Пример #25
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.StateInterface,
                                                         PlayerMatcher.AppearanceInterface, PlayerMatcher.GamePlay, PlayerMatcher.PlayerAction)));
 }
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.WeaponLogicInfo, PlayerMatcher.WeaponFactory)));
 }
        protected override IGroup <PlayerEntity> GetUninitializedGroup(IContexts contexts)
        {
            var c = contexts as Contexts;

            return(c.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Position, PlayerMatcher.EntityKey).NoneOf(PlayerMatcher.PlayerResource)));
        }
Пример #28
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.StateInterface, PlayerMatcher.FlagSelf)));
 }
Пример #29
0
 public ServerServerUserCmdList(Contexts serverContexts)
 {
     _players = serverContexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FirstPersonModel, PlayerMatcher.ThirdPersonModel,
                                                                   PlayerMatcher.State, PlayerMatcher.HitBox));
 }
Пример #30
0
 protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts)
 {
     return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.LocalEvents, PlayerMatcher.Position)));
 }