Esempio n. 1
0
 public static int GetDesireKey(AIProject.EventType type)
 {
     foreach (ValueTuple <AIProject.EventType, Desire.Type> valuePair in Desire.ValuePairs)
     {
         if (type == (AIProject.EventType)valuePair.Item1)
         {
             return(Desire.GetDesireKey((Desire.Type)valuePair.Item2));
         }
     }
     return(-1);
 }
Esempio n. 2
0
 public override void Release(Actor actor, AIProject.EventType type)
 {
     this.OnRelease(actor as PlayerActor);
 }