コード例 #1
0
        public static SerialDict <string, string> getTileset(string name)
        {
            SerialDict <string, string> tileset = new SerialDict <string, string>();

            tileset = (SerialDict <string, string>)Filer.loadFromFile(tileset.GetType(), storageLocation + "XML/Tilesets/" + name);
            return(tileset);
        }
コード例 #2
0
        /* public static List<string> getHighScores(Level level)
         * {
         *   List<string> higscores = new List<string>();
         *
         * } */



        public static void saveLevel(Level level)
        {
            Filer.saveToFile(level, storageLocation + "xml/Levels/" + level.LevelName);
        }
コード例 #3
0
 public static void saveTileset(SerialDict <string, string> tileSet, string file)
 {
     Filer.saveToFile(tileSet, file);
 }
コード例 #4
0
        public static Level loadLevel(string levelName)
        {
            Level level = (Level)Filer.loadFromFile(typeof(Level), storageLocation + "xml/levels/" + levelName);

            return(level);
        }