protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.AppearanceInterface, PlayerMatcher.GamePlay, PlayerMatcher.NetworkAnimator, PlayerMatcher.ThirdPersonAnimator).NoneOf(PlayerMatcher.FlagSelf))); }
public FakePunchSmoothSystem(Contexts contexts) { this._players = contexts.player.GetGroup(PlayerMatcher.AllOf(new IMatcher <PlayerEntity>[] { PlayerMatcher.CameraOwner })); this._timeContext = contexts.time; }
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))); }
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)); }
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; }
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))); }
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 }
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)); }
protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.EntityAdapter, PlayerMatcher.HitBox))); }
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))); }
public NavMeshBridgeSystem(PlayerContext playerContext) { _playerContext = playerContext; _group = _playerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.Robot, PlayerMatcher.ThirdPersonModel)); }
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))); }
protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.PlayerClientUpdate, PlayerMatcher.ThrowingAction))); }
public ClientPlayerCameraInitSystem( PlayerContext playerContext) { _iGroup = playerContext.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.UserCmd, PlayerMatcher.FlagSelf) .NoneOf(PlayerMatcher.CameraObj)); }
protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FlagAutoMove, PlayerMatcher.ThirdPersonModel, PlayerMatcher.Position, PlayerMatcher.CharacterContoller, PlayerMatcher.GamePlay))); }
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; }
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))); }
protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.StateInterface, PlayerMatcher.FlagSelf))); }
public ServerServerUserCmdList(Contexts serverContexts) { _players = serverContexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.FirstPersonModel, PlayerMatcher.ThirdPersonModel, PlayerMatcher.State, PlayerMatcher.HitBox)); }
protected override IGroup <PlayerEntity> GetIGroup(Contexts contexts) { return(contexts.player.GetGroup(PlayerMatcher.AllOf(PlayerMatcher.LocalEvents, PlayerMatcher.Position))); }