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); }
public static RDungeonMap LoadRDungeonMap(DatabaseConnection dbConnection, string mapID) { DataManager.Maps.RDungeonMap loadedMap = MapDataManager.LoadRDungeonMap(dbConnection.Database, mapID); RDungeonMap map = new RDungeonMap(loadedMap); return map; }