Пример #1
0
 public void Load(Alliance.AllianceSave[] saves)
 {
     _alliances.Clear();
     for (int i = 0; i < saves.Length; i++) {
         _alliances.Add(saves[i].name, new Alliance(saves[i]));
     }
 }
Пример #2
0
 public bool CreateAlliance(string name, User owner)
 {
     // see if can create alliance.
     if (!AllianceExist(name)) {
         Alliance all = new Alliance(name, owner);
         _alliances.Add(name, all);
         return true;
     }
     return false;
 }