public static void Postfix(Building_Bed __instance)
            {
                if (!__instance.ForPrisoners)
                {
                    return;
                }

                if (__instance is Building_WhoreBed)
                {
                    Building_WhoreBed.Swap(__instance);
                }
            }
 private static IEnumerable <Gizmo> Process(Building_Bed __instance, IEnumerable <Gizmo> __result)
 {
     foreach (var gizmo in __result)
     {
         yield return(gizmo);
     }
     if (__instance != null && !__instance.ForPrisoners && !__instance.Medical && __instance.def.building.bed_humanlike)
     {
         //--Log.Message("[RJW]Building_Bed_Patch::Process - before new Command_Toggle is called");
         yield return
             (new Command_Toggle
         {
             defaultLabel = "CommandBedSetAsWhoreLabel".Translate(),
             defaultDesc = "CommandBedSetAsWhoreDesc".Translate(),
             icon = ContentFinder <Texture2D> .Get("UI/Commands/AsWhore"),
             isActive = () => __instance is Building_WhoreBed,
             toggleAction = () => Building_WhoreBed.Swap(__instance),
             hotKey = KeyBindingDefOf.Misc4
         });
     }
 }