예제 #1
0
        public void ParseFiles(string[] files, IEngine engine, SaveFlags saveFlags,
                               bool autoLoad = true)
        {
            loadService.ParseFiles(files, engine, saveFlags);

            if (autoLoad)
            {
                loadService.LoadAll();
            }
        }
예제 #2
0
        public void ParseFiles(Dictionary <string, byte[]> files, IEngine engine, SaveFlags saveFlags,
                               bool autoLoad = true)
        {
            loadService.ParseFiles(files, engine, saveFlags);

            if (autoLoad)
            {
                loadService.LoadAll();
            }
        }
예제 #3
0
        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);
        }