public DoorCastLogic(MapObjectContext mapObjectContext, PlayerContext playerContext, IUserCmdGenerator cmdGenerator, float maxDistance) : base(playerContext, maxDistance) { _doorContext = mapObjectContext; _playerContext = playerContext; _userCmdGenerator = cmdGenerator; _triggerObjectManager = SingletonManager.Get <TriggerObjectManager>(); }
public PlayerCastLogic( PlayerContext playerContext, IUserCmdGenerator cmdGenerator, float maxDistance) : base(playerContext, maxDistance) { _playerContext = playerContext; _userCmdGenerator = cmdGenerator; }
public ClientContextInitilizer(IUserCmdGenerator userCmdGenerator, ICoRoutineManager coRoutineManager, IUnityAssetManager assetManager, string loginToken) { _userCmdGenerator = userCmdGenerator; _coRoutineManager = coRoutineManager; _loginToken = loginToken; _assetManager = assetManager; }
public VehicleCastLogic( VehicleContext vehicleContext, PlayerContext playerContext, IUserCmdGenerator cmdGenerator, float maxDistance) : base(playerContext, maxDistance) { _vehicleContext = vehicleContext; _playerContext = playerContext; _userCmdGenerator = cmdGenerator; }
public FreeObjectCastLogic( FreeMoveContext freeMoveContext, PlayerContext playerContext, IUserCmdGenerator cmdGenerator, float distance) : base(playerContext, distance) { _userCmdGenerator = cmdGenerator; _freeMoveContext = freeMoveContext; _playerContext = playerContext; }
public MapObjectCastLogic( PlayerContext playerContext, MapObjectContext mapObjectContext, ClientSessionObjectsComponent sessionObjectsComponent, IUserCmdGenerator cmdGenerator, float maxDistance) : base(playerContext, maxDistance) { _mapObjectContext = mapObjectContext; _sessionObjectsComponent = sessionObjectsComponent; _cmdGenerator = cmdGenerator; }
public PlayerRobotAdapter(Entitas.IContexts contexts, PlayerEntity entity, NavMeshAgent navMeshAgent, IRobotUserCmdProvider robotUserCmdProvider, IRobotSpeedInfo robotSpeedInfo, IUserCmdGenerator userCmdGenerator, IRobotConfig robotConfig) { NavMeshAgent = navMeshAgent; Entity = entity; RobotUserCmdProvider = robotUserCmdProvider; RobotSpeedInfo = robotSpeedInfo; UserCmdGenerator = userCmdGenerator; RobotConfig = robotConfig; GameContexts = contexts; }
public UserCmdCollectSystem(Contexts contexts) { _sessionObjects = contexts.session.clientSessionObjects; _timeManager = _sessionObjects.TimeManager; _generator = _sessionObjects.UserCmdGenerator; _vehicleCmdGenerator = new UnityVehicleCmdGenerator(contexts.userInput.userInputManager.Instance); _playerContext = contexts.player; _simulationTimer = _sessionObjects.SimulationTimer; _contexts = contexts; }
public ClientSurvivalPickupDropHandler(Contexts contexts, int modeId) : base(contexts, modeId) { _userCmdGenerator = contexts.session.clientSessionObjects.UserCmdGenerator; _contexts = contexts; }
public static void CreateRobotPlayerEntity(Contexts contexts, PlayerEntity player, IRobotConfig robotConfig, IRobotUserCmdProvider robotUserCmdProvider, IUserCmdGenerator userCmdGenerator) { var navMeshAgent = player.RootGo().AddComponent <NavMeshAgent>(); var behaviorTree = player.RootGo().AddComponent <BehaviorTree>(); navMeshAgent.autoTraverseOffMeshLink = false; navMeshAgent.updatePosition = false; navMeshAgent.updateRotation = false; navMeshAgent.updateUpAxis = false; navMeshAgent.stoppingDistance = 0.1f; behaviorTree.enabled = false; var robot = new PlayerRobotAdapter(contexts, player, navMeshAgent, robotUserCmdProvider, new DummyRobotSpeedInfo(), userCmdGenerator, new DummyRobotConfig()); player.AddRobot(robot); }
public ClientPlayerPickAndDropSystem(Contexts contexts) { _contexts = contexts; _userCmdGenerator = contexts.session.clientSessionObjects.UserCmdGenerator; }
public PlayerEquipPickAndDropSystem(IUserCmdGenerator userCmdGenerator) { _userCmdGenerator = userCmdGenerator; }
public PlayerStateTipLogic(PlayerContext playerContext, IUserCmdGenerator cmdGenerator) { _playerContext = playerContext; _parachuteState = ParachuteState.Start; _userCmdGenerator = cmdGenerator; }
public BuffTipLogic(PlayerContext playerContext, UiContext uiContext, IUserCmdGenerator cmdGenerator) { _playerContext = playerContext; _userCmdGenerator = cmdGenerator; _uiContext = uiContext; }