示例#1
0
        public static bool Prefix(ref Color __result, Faction thisFaction)
        {
            var color = FactionColors.GetModdedFactionColor(thisFaction);

            if (color == null)
            {
                return(true);
            }

            __result = color.Value;
            return(false);
        }
示例#2
0
        public static bool Prefix(FactionValue __instance, ref Color __result)
        {
            var color = FactionColors.GetModdedFactionColor(__instance);

            if (color == null)
            {
                return(true);
            }

            __result = color.Value;
            return(false);
        }