public static MorphGroup GetMorphGroups(string name) { MorphGroup group = null; if (!morphGroups.ContainsKey(name)) { var assetpath = getAssetPath(name); GenerateMorphGroupsFromFile(name); } group = morphGroups[name]; return(group); }
public static void GenerateMorphGroupsFromFile(string name) { var assetpath = getAssetPath(name); var filePath = GetFilePath(assetpath); if (MorphGroupFileExists(assetpath)) { morphGroups[name] = new MorphGroup(name); var fileData = File.ReadAllText(filePath); var lines = fileData.Split("\n"[0]); GenerateSubgroupsFromLines(lines, name); } }