Esempio n. 1
0
 public static SavedMapData FromModel(IMap<MapModelBase> model)
 {
     //TODO: Do we want/need to save NPC character locations?
     return new SavedMapData
     {
         MapId = model.MapId,
         Level = model.PlayerCharacter.Level,
         Row = model.PlayerCharacter.Row,
         Column = model.PlayerCharacter.Column,
         PlayerLocationName = model.GetPlayerLocationName(),
     };
 }