Esempio n. 1
0
        protected override void OnEntityCreationFinished(EntityCreationFinishedEventArgs args)
        {
            IMovementData             movementData       = MovementDataMappable.RetrieveEntity(args.EntityGuid);
            IEntityDataFieldContainer dataFieldContainer = EntityDataMappable.RetrieveEntity(args.EntityGuid);

            EntityCreationData data = new EntityCreationData(args.EntityGuid, movementData, EntityDataUpdateFactory.Create(new EntityFieldUpdateCreationContext(dataFieldContainer, dataFieldContainer.DataSetIndicationArray)));

            var senderContext = new GenericSingleTargetMessageContext <PlayerSelfSpawnEventPayload>(args.EntityGuid, new PlayerSelfSpawnEventPayload(data));

            Sender.Send(senderContext);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public PlayerSelfSpawnEventPayload([NotNull] EntityCreationData creationData)
 {
     CreationData = creationData ?? throw new ArgumentNullException(nameof(creationData));
 }