Ejemplo n.º 1
0
        public static global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload ToSpatial(global::Generated.Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload nativeType)
        {
            var spatialType = new global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload();

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

            nativeType.Field1 = spatialType.field1;
            nativeType.Field2 = spatialType.field2;
            return(nativeType);
        }
Ejemplo n.º 3
0
                public void SendFirstEvent(global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload payload)
                {
                    if (!VerifyNotDisposed())
                    {
                        return;
                    }

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

                    sender.Events.Add(payload);
                }
Ejemplo n.º 4
0
 public void OnFirstEventEvent(global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload payload)
 {
     GameObjectDelegates.DispatchWithErrorHandling(payload, FirstEventDelegates, logDispatcher);
 }
Ejemplo n.º 5
0
 public Event(global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload payload)
 {
     Payload = payload;
 }
Ejemplo n.º 6
0
        public void SendFirstEventEvent(global::Improbable.Gdk.Tests.NonblittableTypes.FirstEventPayload firstEvent)
        {
            var eventToSend = new NonBlittableComponent.FirstEvent.Event(firstEvent);

            ComponentUpdateSystem.SendEvent(eventToSend, EntityId);
        }