Esempio n. 1
0
 public void AddKerbal(Kerbal k)
 {
     //make sure K doesn't exist in roster
     if (!(kerbals.ContainsKey(k.GetName( ))))
     {
         kerbals.Add(k.GetName( ), k);
     }
     //it used to erase and add here.
 }
Esempio n. 2
0
 public bool ValidateKerbal(Kerbal k)
 {
     foreach (string kerb in kerbals.Keys)
     {
         if (kerb.ToLower( ).Equals(k.GetName( ).ToLower( )))
         {
             return(false);
         }
     }
     return(true);
 }