Exemplo n.º 1
0
    public Dictionary <Pos, HomelandsLocation> Make(MapSettings mapSettings)
    {
        IMapLocSetter mapLocSetter = MapLocSetterFactory.Make(mapSettings._tileShape);

        Dictionary <Pos, HomelandsLocation> locations = BuildLocations(mapSettings, mapLocSetter);

        SetNeighbors(mapSettings, locations);

        return(locations);
    }
Exemplo n.º 2
0
    public Dictionary <Pos, HomelandsLocation> Make(MapSettings settings)
    {
        Debug.Log("Making Map");

        GaeaWorldbuilder map = new GaeaWorldbuilder(settings);

        map.GenerateMap();

        IMapLocSetter mapLocSetter = MapLocSetterFactory.Make(_tileShape);

        Dictionary <Pos, HomelandsLocation> locations = BuildLocations(map, mapLocSetter);

        SetNeighbors(settings, locations);

        Debug.Log("Made Map");

        return(locations);
    }