public void ParseFiles(string[] files, IEngine engine, SaveFlags saveFlags, bool autoLoad = true) { loadService.ParseFiles(files, engine, saveFlags); if (autoLoad) { loadService.LoadAll(); } }
public void ParseFiles(Dictionary <string, byte[]> files, IEngine engine, SaveFlags saveFlags, bool autoLoad = true) { loadService.ParseFiles(files, engine, saveFlags); if (autoLoad) { loadService.LoadAll(); } }
protected virtual void ParseFiles(Dictionary <string, byte[]> files, SaveFlags?flags = null) { if (!flags.HasValue) { flags = SaveFlags.System; flags |= SaveFlags.Code; flags |= SaveFlags.Colors; flags |= SaveFlags.ColorMap; flags |= SaveFlags.Sprites; flags |= SaveFlags.Tilemap; flags |= SaveFlags.TilemapFlags; flags |= SaveFlags.Fonts; flags |= SaveFlags.Sounds; flags |= SaveFlags.Music; flags |= SaveFlags.SaveData; } loadService.ParseFiles(files, tmpEngine, flags.Value); }