public static void Postfix(Building_Storage __instance, ref IEnumerable <Gizmo> __result)
            {
                List <Gizmo> list = new List <Gizmo>();

                foreach (var x in __result)
                {
                    list.Add(x);
                }
                if (__instance.Faction == Faction.OfPlayer && __instance.def.blueprintClass == typeof(Blueprint_Build))
                {
                    Command com = BetterCopyCommand.GetBetterCopyCommand(__instance.def, __instance.Stuff, __instance.GetStoreSettings());
                    BetterCopyCommand.BuildingIconCopy(list, com);
                    list.Add(com);
                }
                __result = list;
            }
示例#2
0
            public static void Postfix(Building_Storage __instance, ref IEnumerable <Gizmo> __result)
            {
#if DEBUG
                Log.Message(Debug.GetMethodName(2) + "@" + MethodBase.GetCurrentMethod().Name);
#endif
                List <Gizmo> list = new List <Gizmo>();
                foreach (var x in __result)
                {
                    list.Add(x);
                }
                if (__instance.Faction == Faction.OfPlayer && __instance.def.blueprintClass == typeof(Blueprint_Build))
                {
                    Command com = BetterCopyCommand.GetBetterCopyCommand(__instance.def, __instance.Stuff, __instance.GetStoreSettings());
                    BetterCopyCommand.BuildingIconCopy(list, com);
                    list.Add(com);
                }
                __result = list;
            }