示例#1
0
 public void GetActions(Entity self, BaseEvent msg, EUseSource source)
 {
     if (msg is DownEvent && source == EUseSource.Item)
     {
         msg.OnEvent += Travel;
     }
 }
示例#2
0
 public void GetActions(Entity self, BaseEvent message, EUseSource source)
 {
     if (message is ConsumeEvent evt && source == EUseSource.Item)
     {
         evt.OnEvent += Drink;
     }
     // TODO: Throwing potions
 }
示例#3
0
 public void GetActions(Entity self, BaseEvent message, EUseSource source)
 {
     if (source == EUseSource.Item)
     {
         if (message is ConsumeEvent) // TODO, others
         {
             message.PostEvent += Consume;
         }
     }
 }
示例#4
0
 public void GetActions(Entity self, BaseEvent msg, EUseSource source)
 {
     //if (source == EUseSource.Item && MessageType.IsAssignableFrom(msg.GetType()))
     //    msg.OnEvent += Genocide;
 }