internal static bool Prefix_ToString(Enum __instance, ref string __result)
        {
            if (__instance is CraftTree.Type craftTreeType)
            {
                if (cacheManager.TryGetValue(craftTreeType, out EnumTypeCache craftTreeTypeCache))
                {
                    __result = craftTreeTypeCache.Name;
                    return(false);
                }
            }

            return(true);
        }
示例#2
0
        private static bool Prefix_ToString(Enum __instance, ref string __result)
        {
            if (__instance is TechType techType)
            {
                if (cacheManager.TryGetValue(techType, out EnumTypeCache techTypeCache))
                {
                    __result = techTypeCache.Name;
                    return(false);
                }
            }

            return(true);
        }