示例#1
0
 public static void SaveRDungeonMap(DatabaseConnection dbConnection, string mapID, RDungeonMap map)
 {
     for (int i = 0; i < Constants.MAX_MAP_NPCS; i++) {
         map.ActiveNpc[i].Save();
     }
     MapDataManager.SaveRDungeonMap(dbConnection.Database, mapID, map.baseMap);
 }
示例#2
0
        public static RDungeonMap LoadRDungeonMap(DatabaseConnection dbConnection, string mapID)
        {
            DataManager.Maps.RDungeonMap loadedMap = MapDataManager.LoadRDungeonMap(dbConnection.Database, mapID);
            RDungeonMap map = new RDungeonMap(loadedMap);

            return map;
        }