private static Area BuildAreaType(areaType type, Room fromHere) { Area area = null; switch (type) { case areaType.home: area = BuildHomeArea(fromHere); // setup restrictions, weather, unique stats ... break; default: area = new Area("Undefined Area", "A default undefined area."); break; } return area; }
private static Area BuildAreaType(areaType type, Room fromHere) { Area area = null; switch (type) { case areaType.home: area = BuildHomeArea(fromHere); // setup restrictions, weather, unique stats ... break; default: area = new Area("Undefined Area", "A default undefined area."); break; } return(area); }
public static Area AreaType(areaType type, Room fromHere = null) { return(BuildAreaType(type, fromHere)); }
public static Area AreaType(areaType type, Room fromHere = null) { return BuildAreaType(type, fromHere); }