示例#1
0
        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.");
            }
        }
示例#2
0
        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;
            }
        }
示例#3
0
 public void Broadcast <T, U, V>(EventEnum e, T arg1, U arg2, V arg3)
 {
     Messenger.Broadcast(e.ToString(), arg1, arg2, arg3);
 }
示例#4
0
 public void Broadcast <T>(EventEnum e, T arg1)
 {
     Messenger.Broadcast(e.ToString(), arg1);
 }
示例#5
0
 public void Broadcast(EventEnum e)
 {
     Messenger.Broadcast(e.ToString());
 }
示例#6
0
 public void RemoveListener <T, U, V>(EventEnum e, Callback <T, U, V> handler)
 {
     Messenger.RemoveListener(e.ToString(), handler);
 }
示例#7
0
 public void AddListener <T, U>(EventEnum e, Callback <T, U> handler)
 {
     Messenger.AddListener(e.ToString(), handler);
 }