public Area(AreaData data) { if (data == null) throw new Exception("AreaData cannot be null"); Data = data; ScenerySpriteNames = Data.OverworldScenerySpriteNamesToList(); BossNames = Data.BossNamesToList(); populateEnemyNames(); }
public static Area GetNewArea(string name) { if (name == null) { return(null); } AreaData areaData = GetAreaData(name); if (areaData == null) { return(null); } else { return(new Area(areaData)); } }