Ejemplo n.º 1
0
        public Area(AreaData data)
        {
            if (data == null)
                throw new Exception("AreaData cannot be null");

            Data = data;
            ScenerySpriteNames = Data.OverworldScenerySpriteNamesToList();
            BossNames = Data.BossNamesToList();
            populateEnemyNames();
        }
Ejemplo n.º 2
0
        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));
            }
        }