static void SyncRename(SyncWorker sync, ref Dialog_RenameColony rename)
 {
     if (sync.isWriting)
     {
         sync.Write(rename.changeNameTo);
         sync.Write(rename.changeSecondNameTo);
         sync.Write(rename.changingSettlement);
     }
     else
     {
         string     new_faction_name = sync.Read <string>();
         string     new_base_name    = sync.Read <string>();
         Settlement new_base_obj     = sync.Read <Settlement>();
         NamePlayerFactionDialogUtility.Named(new_faction_name);
         NamePlayerSettlementDialogUtility.Named(new_base_obj, new_base_name);
     }
 }
 protected override void Named(string s)
 {
     NamePlayerFactionDialogUtility.Named(s);
 }
 protected override bool IsValidName(string s)
 {
     return(NamePlayerFactionDialogUtility.IsValidName(s));
 }
Пример #4
0
 protected override void Named(string s)
 {
     changeNameTo = s;
     NamePlayerFactionDialogUtility.Named(s);
 }