mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
feat: routes rendering
This commit is contained in:
parent
6776e5b867
commit
71e53bd34f
4 changed files with 138 additions and 9 deletions
|
|
@ -134,15 +134,15 @@ window.Routes = (function () {
|
|||
const routes = [];
|
||||
|
||||
for (const {feature, cells} of mainRoads) {
|
||||
routes.push({i: routes.length, type: "road", feature, cells});
|
||||
routes.push({i: routes.length, group: "roads", feature, cells});
|
||||
}
|
||||
|
||||
for (const {feature, cells} of trails) {
|
||||
routes.push({i: routes.length, type: "trail", feature, cells});
|
||||
routes.push({i: routes.length, group: "trails", feature, cells});
|
||||
}
|
||||
|
||||
for (const {feature, cells} of seaRoutes) {
|
||||
routes.push({i: routes.length, type: "sea", feature, cells});
|
||||
routes.push({i: routes.length, group: "searoutes", feature, cells});
|
||||
}
|
||||
|
||||
return routes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue