Exemple #1
0
 /// <summary>
 /// Please call `base.OnCreate()` on your subclass if you have your own override !!
 /// </summary>
 protected override void OnCreate()
 {
     ETM = EnumTypeManager.Singleton;
     DispatchingSystem = World.GetOrCreateSystem <DispatchingSystem>();
     queuedActions     = new Queue <DispatchAction>();
     DispatchingSystem.Subscribe(HandleAction);
     created = true;
 }
 public static DispatchAction Create <ENUM>(
     EnumTypeManager etm,
     ENUM e,
     params (Enum key, object pl)[] payload