Пример #1
0
        public static Command AbandonCommand(MapParent settlement)
        {
            Command_Action command_Action = new Command_Action();

            command_Action.defaultLabel = "CommandAbandonHome".Translate();
            command_Action.defaultDesc  = "CommandAbandonHomeDesc".Translate();
            command_Action.icon         = SettlementAbandonUtility.AbandonCommandTex;
            command_Action.action       = delegate
            {
                SettlementAbandonUtility.TryAbandonViaInterface(settlement);
            };
            if (SettlementAbandonUtility.AllColonistsThere(settlement))
            {
                command_Action.Disable("CommandAbandonHomeFailAllColonistsThere".Translate());
            }
            return(command_Action);
        }
 internal void <> m__0()
 {
     SettlementAbandonUtility.TryAbandonViaInterface(this.settlement);
 }