public static RogueEvent GetEvent(EventEnum evChoice) { switch (evChoice) { case EventEnum.startingBoon: return(EventDatabase.instance.allEvents[0]); default: throw new Exception("Error in EventDatabase::ResolveEvent. Event " + evChoice.ToString() + " is unknown."); } }
public static void ResolveEvent(EventEnum evChoice, int choice) { switch (evChoice) { case EventEnum.startingBoon: EventDatabase.instance.allEvents[0].ResolveEvent(choice); break; default: Debug.LogError("Error in EventDatabase::ResolveEvent. Event " + evChoice.ToString() + " is unknown."); break; } }
public void Broadcast <T, U, V>(EventEnum e, T arg1, U arg2, V arg3) { Messenger.Broadcast(e.ToString(), arg1, arg2, arg3); }
public void Broadcast <T>(EventEnum e, T arg1) { Messenger.Broadcast(e.ToString(), arg1); }
public void Broadcast(EventEnum e) { Messenger.Broadcast(e.ToString()); }
public void RemoveListener <T, U, V>(EventEnum e, Callback <T, U, V> handler) { Messenger.RemoveListener(e.ToString(), handler); }
public void AddListener <T, U>(EventEnum e, Callback <T, U> handler) { Messenger.AddListener(e.ToString(), handler); }