Esempio n. 1
0
        internal static void Internal_OnActorEvent(ActorEventType eventType, Actor a, Actor b)
        {
            switch (eventType)
            {
            case ActorEventType.Spawned:
                ActorSpawned?.Invoke(a);
                break;

            case ActorEventType.Deleted:
                ActorDeleted?.Invoke(a);
                break;

            case ActorEventType.ParentChanged:
                ActorParentChanged?.Invoke(a, b);
                break;

            case ActorEventType.OrderInParentChanged:
                ActorOrderInParentChanged?.Invoke(a);
                break;

            case ActorEventType.NameChanged:
                ActorNameChanged?.Invoke(a);
                break;

            case ActorEventType.ActiveChanged:
                ActorActiveChanged?.Invoke(a);
                break;
            }
        }
Esempio n. 2
0
 public void RaiseActorSpawned(object sender, EventArgs e)
 {
     ActorSpawned?.Invoke(sender, e);
 }