public static void MakeColonyItems(params ColonyMakerFlag[] flags)
        {
            bool godMode = DebugSettings.godMode;

            DebugSettings.godMode            = true;
            Thing.allowDestroyNonDestroyable = true;
            if (SuperItemSpawner.usedCells == null)
            {
                SuperItemSpawner.usedCells = new BoolGrid(SuperItemSpawner.Map);
            }
            else
            {
                SuperItemSpawner.usedCells.ClearAndResizeTo(SuperItemSpawner.Map);
            }
            SuperItemSpawner.overRect = new CellRect(SuperItemSpawner.Map.Center.x - (Map.Size.x / 2) + 10, SuperItemSpawner.Map.Center.z - (Map.Size.z / 2) + 10, Map.Size.x - 20, Map.Size.z - 20);
            SuperItemSpawner.DeleteAllSpawnedPawns();
            GenDebug.ClearArea(SuperItemSpawner.overRect, Find.CurrentMap);


            List <ThingDef> itemDefs = (from def in DefDatabase <ThingDef> .AllDefs
                                        where DebugThingPlaceHelper.IsDebugSpawnable(def, false) && def.category == ThingCategory.Item
                                        select def).ToList <ThingDef>();

            SuperItemSpawner.FillWithItems(overRect, itemDefs);



            SuperItemSpawner.ClearAllHomeArea();
            SuperItemSpawner.FillWithHomeArea(SuperItemSpawner.overRect);
            DebugSettings.godMode            = godMode;
            Thing.allowDestroyNonDestroyable = false;
        }
 private static void MakeAllItems()
 {
     SuperItemSpawner.MakeColonyItems(new ColonyMakerFlag[1]);
 }