Exemplo n.º 1
0
        public static void ToggleHaulDesignation(this Thing t)
        {
            DesignationManager dm  = t.MapHeld.designationManager;
            Designation        des = dm.DesignationOn(t, DesignationDefOf.Haul);

            if (des != null)
            {
                dm.RemoveDesignation(des);
            }
            else
            {
                dm.AddDesignation(new Designation(t, DesignationDefOf.Haul));
            }
        }