Пример #1
0
 public SpellCastRequestPayloadHandler(ILog logger,
                                       IReadonlyConnectionEntityCollection connectionIdToEntityMap,
                                       IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
                                       [NotNull] IReadonlyEntityGuidMappable <IActorRef> actorReferenceMappable)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     ActorReferenceMappable = actorReferenceMappable ?? throw new ArgumentNullException(nameof(actorReferenceMappable));
 }
Пример #2
0
 public PlayerNetworkTrackerChangeUpdateRequestHandler(ILog logger, IReadonlyConnectionEntityCollection connectionIdToEntityMap, IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
                                                       [NotNull] IReadonlyEntityGuidMappable <InterestCollection> interestCollections,
                                                       [NotNull] IEntitySessionMessageSender entityMessageSender)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     InterestCollections = interestCollections ?? throw new ArgumentNullException(nameof(interestCollections));
     EntityMessageSender = entityMessageSender ?? throw new ArgumentNullException(nameof(entityMessageSender));
 }
Пример #3
0
 /// <inheritdoc />
 public PlayerModelChangeRequestHandler(
     ILog logger,
     IReadonlyConnectionEntityCollection connectionIdToEntityMap,
     IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
     [NotNull] IReadonlyEntityGuidMappable <IEntityDataFieldContainer> entityFieldMap)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     EntityFieldMap = entityFieldMap ?? throw new ArgumentNullException(nameof(entityFieldMap));
 }
Пример #4
0
 /// <inheritdoc />
 public ClientMovementDataUpdateRequestHandler(
     [NotNull] ILog logger,
     [NotNull] IReadonlyConnectionEntityCollection connectionIdToEntityMap,
     [NotNull] IEntityGuidMappable <IMovementData> movementDataMap,
     IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
     [NotNull] IEntityGuidMappable <IMovementGenerator <GameObject> > movementGenerator,
     [NotNull] IReadonlyEntityGuidMappable <CharacterController> characterControllerMappable)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     MovementDataMap             = movementDataMap ?? throw new ArgumentNullException(nameof(movementDataMap));
     MovementGenerator           = movementGenerator ?? throw new ArgumentNullException(nameof(movementGenerator));
     CharacterControllerMappable = characterControllerMappable ?? throw new ArgumentNullException(nameof(characterControllerMappable));
 }
Пример #5
0
 /// <inheritdoc />
 public ClientRotationDataUpdateRequestHandler(
     [NotNull] ILog logger,
     [NotNull] IReadonlyConnectionEntityCollection connectionIdToEntityMap,
     [NotNull] IEntityGuidMappable <IMovementData> movementDataMap,
     IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
     [NotNull] IEntityGuidMappable <IMovementGenerator <GameObject> > movementGenerator,
     [NotNull] IReadonlyNetworkTimeService timeService)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     MovementDataMap   = movementDataMap ?? throw new ArgumentNullException(nameof(movementDataMap));
     MovementGenerator = movementGenerator ?? throw new ArgumentNullException(nameof(movementGenerator));
     TimeService       = timeService ?? throw new ArgumentNullException(nameof(timeService));
 }
Пример #6
0
 /// <inheritdoc />
 public ClientSetClickToMovePathRequestPayloadHandler(
     [NotNull] ILog logger,
     [NotNull] IReadonlyConnectionEntityCollection connectionIdToEntityMap,
     [NotNull] IEntityGuidMappable <IMovementData> movementDataMap,
     IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy,
     [NotNull] IEntityGuidMappable <IMovementGenerator <GameObject> > movementGenerator,
     [NotNull] IReadonlyNetworkTimeService timeService,
     [NotNull] IReadonlyEntityGuidMappable <IActorRef> actorReferenceMappable,
     [NotNull] IEntityGuidMappable <WorldTransform> transformMap)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
     MovementDataMap        = movementDataMap ?? throw new ArgumentNullException(nameof(movementDataMap));
     MovementGenerator      = movementGenerator ?? throw new ArgumentNullException(nameof(movementGenerator));
     TimeService            = timeService ?? throw new ArgumentNullException(nameof(timeService));
     ActorReferenceMappable = actorReferenceMappable ?? throw new ArgumentNullException(nameof(actorReferenceMappable));
     TransformMap           = transformMap ?? throw new ArgumentNullException(nameof(transformMap));
 }
Пример #7
0
 /// <inheritdoc />
 protected ControlledEntityRequestHandler(ILog logger, IReadonlyConnectionEntityCollection connectionIdToEntityMap, IContextualResourceLockingPolicy <NetworkEntityGuid> lockingPolicy)
     : base(logger, connectionIdToEntityMap, lockingPolicy)
 {
 }
 /// <inheritdoc />
 public PlayerEntityGuidEnumerable([NotNull] ISessionCollection connectedSessions, [NotNull] IReadonlyConnectionEntityCollection connectionEntities)
 {
     ConnectedSessions  = connectedSessions ?? throw new ArgumentNullException(nameof(connectedSessions));
     ConnectionEntities = connectionEntities ?? throw new ArgumentNullException(nameof(connectionEntities));
 }