public static Hud ParseHud(string path) { Hud hud = new Hud(); HudResourceFile tempRes; tempRes = ParseHudResource(path); if(!tempRes.IsNull) { hud.Resource = tempRes; hud.ApplyResource(); } var Hud_Subfolders = Directory.GetDirectories(path); for(int i = 0; i < Hud_Subfolders.Length; i++) { HudFolder folder = new HudFolder(); folder.FullName = Hud_Subfolders[i]; if(folder.Name.ToLower() == "resource" || folder.Name.ToLower() == "scripts") folder = ParseHudFolder(folder.FullName); else folder.CopyNoParse = true; hud.Add(folder); } return hud; }
public Hud CombineHuds(Hud hud1,Hud hud2) { Hud result = new Hud(); return result; }