protected SharedDestroyWorldRepresentationEventListener(IEntityDeconstructionStartingEventSubscribable subscriptionService, [NotNull] IReadonlyEntityGuidMappable <GameObject> guidToGameObjectMappable, [NotNull] IGameObjectToEntityMappable gameObjectToEntityMap) : base(subscriptionService) { GuidToGameObjectMappable = guidToGameObjectMappable ?? throw new ArgumentNullException(nameof(guidToGameObjectMappable)); GameObjectToEntityMap = gameObjectToEntityMap ?? throw new ArgumentNullException(nameof(gameObjectToEntityMap)); }
public SharedInitializeEntityWorldMappablesEventListener(IEntityWorldRepresentationCreatedEventSubscribable subscriptionService, [NotNull] IEntityGuidMappable <GameObject> guidToGameObjectMappable, [NotNull] IGameObjectToEntityMappable gameObjectToEntityMap) : base(subscriptionService) { GuidToGameObjectMappable = guidToGameObjectMappable ?? throw new ArgumentNullException(nameof(guidToGameObjectMappable)); GameObjectToEntityMap = gameObjectToEntityMap ?? throw new ArgumentNullException(nameof(gameObjectToEntityMap)); }
/// <inheritdoc /> public DefaultEntityDestructor( IReadonlyEntityGuidMappable <GameObject> guidToGameObjectMappable, IGameObjectToEntityMappable gameObjectToEntityMap, [NotNull] IReadOnlyCollection <IEntityCollectionRemovable> removableCollections) { GuidToGameObjectMappable = guidToGameObjectMappable ?? throw new ArgumentNullException(nameof(guidToGameObjectMappable)); GameObjectToEntityMap = gameObjectToEntityMap ?? throw new ArgumentNullException(nameof(gameObjectToEntityMap)); RemovableCollections = removableCollections ?? throw new ArgumentNullException(nameof(removableCollections)); }
/// <inheritdoc /> public DefaultEntityFactory( ILog logger, IEntityGuidMappable <GameObject> guidToGameObjectMappable, IEntityGuidMappable <IMovementData> guidToMovementInfoMappable, IGameObjectToEntityMappable gameObjectToEntityMap, IFactoryCreatable <GameObject, EntityPrefab> prefabFactory, IMovementDataHandlerService movementHandlerService, IEntityGuidMappable <IEntityDataFieldContainer> fieldDataContainers, IEntityGuidMappable <IChangeTrackableEntityDataCollection> changeTrackableEntityDataFieldContainers, [NotNull] IEntityGuidMappable <AsyncReaderWriterLock> entityAsyncLockMap, [NotNull] IEntityGuidMappable <CharacterController> characterControllerMappable) { Logger = logger ?? throw new ArgumentNullException(nameof(logger)); GuidToGameObjectMappable = guidToGameObjectMappable ?? throw new ArgumentNullException(nameof(guidToGameObjectMappable)); GuidToMovementInfoMappable = guidToMovementInfoMappable ?? throw new ArgumentNullException(nameof(guidToMovementInfoMappable)); GameObjectToEntityMap = gameObjectToEntityMap ?? throw new ArgumentNullException(nameof(gameObjectToEntityMap)); PrefabFactory = prefabFactory ?? throw new ArgumentNullException(nameof(prefabFactory)); MovementHandlerService = movementHandlerService ?? throw new ArgumentNullException(nameof(movementHandlerService)); FieldDataContainers = fieldDataContainers; ChangeTrackableEntityDataFieldContainers = changeTrackableEntityDataFieldContainers; EntityAsyncLockMap = entityAsyncLockMap ?? throw new ArgumentNullException(nameof(entityAsyncLockMap)); CharacterControllerMappable = characterControllerMappable ?? throw new ArgumentNullException(nameof(characterControllerMappable)); }
public ClientInitializeEntityWorldMappablesEventListener(IEntityWorldRepresentationCreatedEventSubscribable subscriptionService, IEntityGuidMappable <GameObject> guidToGameObjectMappable, IGameObjectToEntityMappable gameObjectToEntityMap) : base(subscriptionService, guidToGameObjectMappable, gameObjectToEntityMap) { }
public ServerDestroyWorldRepresentationEventListener(IEntityDeconstructionStartingEventSubscribable subscriptionService, IReadonlyEntityGuidMappable <GameObject> guidToGameObjectMappable, IGameObjectToEntityMappable gameObjectToEntityMap) : base(subscriptionService, guidToGameObjectMappable, gameObjectToEntityMap) { }