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. }
public bool ValidateKerbal(Kerbal k) { foreach (string kerb in kerbals.Keys) { if (kerb.ToLower( ).Equals(k.GetName( ).ToLower( ))) { return(false); } } return(true); }