Skip to content

Commit

Permalink
Added biomeFieldUid
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Nov 29, 2023
1 parent a6560d3 commit 3f3f674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/electron.renderer/data/DataTypes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typedef AutoLayerRuleGroup = {
var rules : Array<data.def.AutoLayerRuleDef>;
var isOptional : Bool;
var usesWizard : Bool;
var biomeFieldUid : Int;
}

typedef GridTileInfos = {
Expand Down
3 changes: 3 additions & 0 deletions src/electron.renderer/data/def/LayerDef.hx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ class LayerDef {
isOptional: rg.isOptional,
rules: rg.rules.map( function(r) return r.toJson(this) ),
usesWizard: rg.usesWizard,
biomeFieldUid: rg.biomeFieldUid,
}
}

Expand All @@ -237,6 +238,7 @@ class LayerDef {
});
rg.collapsed = true;
rg.usesWizard = JsonTools.readBool( ruleGroupJson.usesWizard, false );
rg.biomeFieldUid = JsonTools.readInt( ruleGroupJson.biomeFieldUid, -1 );
return rg;
}

Expand Down Expand Up @@ -571,6 +573,7 @@ class LayerDef {
collapsed: false,
isOptional: false,
usesWizard: false,
biomeFieldUid: -1,
rules: [],
}
if( index!=null )
Expand Down

0 comments on commit 3f3f674

Please sign in to comment.