mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
added breadcrumb poc for culture painting
This commit is contained in:
parent
777acf4ccb
commit
58f5bf4d4c
4 changed files with 131 additions and 1 deletions
|
|
@ -264,6 +264,8 @@ function editCultures() {
|
|||
|
||||
// re-calculate cultures
|
||||
function recalculateCultures() {
|
||||
saveBreadCrumb();
|
||||
|
||||
pack.cells.culture = new Int8Array(pack.cells.i.length);
|
||||
pack.cultures.forEach(function(c) {
|
||||
if (!c.i || c.removed) return;
|
||||
|
|
@ -348,6 +350,7 @@ function editCultures() {
|
|||
}
|
||||
|
||||
function applyCultureManualAssignent() {
|
||||
saveBreadCrumb();
|
||||
const changed = cults.select("#temp").selectAll("polygon");
|
||||
changed.each(function() {
|
||||
const i = +this.dataset.cell;
|
||||
|
|
@ -378,6 +381,7 @@ function editCultures() {
|
|||
}
|
||||
|
||||
function addCulture() {
|
||||
saveBreadCrumb();
|
||||
const defaultCultures = Cultures.getDefault();
|
||||
let culture, base, name;
|
||||
if (pack.cultures.length < defaultCultures.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue