public static string GetPatternPath(this Studio.OCIItem ociItem, int index) { #if KK return(ociItem.itemInfo.pattern[index].filePath); #elif AI || HS2 return(ociItem.itemInfo.colors[index].pattern.filePath); #else throw new System.NotImplementedException("StudioExtensions.GetPatternPath"); #endif }
public static void SetPatternPath(this Studio.OCIItem ociItem, int index, string filePath) { #if KK ociItem.itemInfo.pattern[index].filePath = filePath; #elif AI || HS2 ociItem.itemInfo.colors[index].pattern.filePath = filePath; #else throw new System.NotImplementedException("StudioExtensions.SetPatternPath"); #endif }
internal static bool OCIItemSetPatternTex(int _key, Studio.OCIItem __instance) { if (__instance.itemComponent == null && _key > 0) { Logger.LogError($"ItemComponent is null itemInfo.no:{__instance.itemInfo?.no}"); return(false); } return(true); }