Exemplo n.º 1
0
        public static global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload ToSpatial(global::Generated.Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload nativeType)
        {
            var spatialType = new global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload();

            spatialType.field1 = nativeType.Field1;
            spatialType.field2 = nativeType.Field2;
            return(spatialType);
        }
Exemplo n.º 2
0
        public static SecondEventPayload ToNative(global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload spatialType)
        {
            var nativeType = new SecondEventPayload();

            nativeType.Field1 = spatialType.field1;
            nativeType.Field2 = spatialType.field2;
            return(nativeType);
        }
Exemplo n.º 3
0
                public void SendSecondEvent(global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload payload)
                {
                    if (!VerifyNotDisposed())
                    {
                        return;
                    }

                    var sender = EntityManager.GetComponentData <EventSender.SecondEvent>(Entity);

                    sender.Events.Add(payload);
                }
Exemplo n.º 4
0
 public void OnSecondEventEvent(global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload payload)
 {
     GameObjectDelegates.DispatchWithErrorHandling(payload, SecondEventDelegates, logDispatcher);
 }
 public Event(global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload payload)
 {
     Payload = payload;
 }
Exemplo n.º 6
0
        public void SendSecondEventEvent(global::Improbable.Gdk.Tests.BlittableTypes.SecondEventPayload secondEvent)
        {
            var eventToSend = new BlittableComponent.SecondEvent.Event(secondEvent);

            ComponentUpdateSystem.SendEvent(eventToSend, EntityId);
        }