Ejemplo n.º 1
0
 public Tuple <bool, MessageCallback> CheckKingdom(Kingdom kingdom)
 {
     if (kingdom.GetResourcesCount(ItemName) >= Count)
     {
         return(new Tuple <bool, MessageCallback>(true, new MessageCallback()));
     }
     else
     {
         MessageCallback cb = new MessageCallback()
         {
             Text = Locale.Get("resources." + ItemName + ".miss", kingdom.Language),
             From = ECharacter.Knight
         };
         return(new Tuple <bool, MessageCallback>(false, cb));
     }
 }