|
8 | 8 | * completely resolved internally by the editor before any saving. You should just ignore |
9 | 9 | * this part. |
10 | 10 | */ |
11 | | -@lombok.Data |
12 | 11 | @JsonIgnoreProperties(ignoreUnknown = true) |
13 | 12 | public class AutoLayerRuleDefinition { |
14 | | - @lombok.Getter(onMethod_ = {@JsonProperty("active")}) |
15 | | - @lombok.Setter(onMethod_ = {@JsonProperty("active")}) |
16 | 13 | private boolean active; |
17 | | - @lombok.Getter(onMethod_ = {@JsonProperty("breakOnMatch")}) |
18 | | - @lombok.Setter(onMethod_ = {@JsonProperty("breakOnMatch")}) |
19 | 14 | private boolean breakOnMatch; |
20 | | - @lombok.Getter(onMethod_ = {@JsonProperty("chance")}) |
21 | | - @lombok.Setter(onMethod_ = {@JsonProperty("chance")}) |
22 | 15 | private double chance; |
23 | | - @lombok.Getter(onMethod_ = {@JsonProperty("checker")}) |
24 | | - @lombok.Setter(onMethod_ = {@JsonProperty("checker")}) |
25 | 16 | private Checker checker; |
26 | | - @lombok.Getter(onMethod_ = {@JsonProperty("flipX")}) |
27 | | - @lombok.Setter(onMethod_ = {@JsonProperty("flipX")}) |
28 | 17 | private boolean flipX; |
29 | | - @lombok.Getter(onMethod_ = {@JsonProperty("flipY")}) |
30 | | - @lombok.Setter(onMethod_ = {@JsonProperty("flipY")}) |
31 | 18 | private boolean flipY; |
32 | | - @lombok.Getter(onMethod_ = {@JsonProperty("outOfBoundsValue")}) |
33 | | - @lombok.Setter(onMethod_ = {@JsonProperty("outOfBoundsValue")}) |
34 | 19 | private Long outOfBoundsValue; |
35 | | - @lombok.Getter(onMethod_ = {@JsonProperty("pattern")}) |
36 | | - @lombok.Setter(onMethod_ = {@JsonProperty("pattern")}) |
37 | 20 | private List<Long> pattern; |
38 | | - @lombok.Getter(onMethod_ = {@JsonProperty("perlinActive")}) |
39 | | - @lombok.Setter(onMethod_ = {@JsonProperty("perlinActive")}) |
40 | 21 | private boolean perlinActive; |
41 | | - @lombok.Getter(onMethod_ = {@JsonProperty("perlinOctaves")}) |
42 | | - @lombok.Setter(onMethod_ = {@JsonProperty("perlinOctaves")}) |
43 | 22 | private double perlinOctaves; |
44 | | - @lombok.Getter(onMethod_ = {@JsonProperty("perlinScale")}) |
45 | | - @lombok.Setter(onMethod_ = {@JsonProperty("perlinScale")}) |
46 | 23 | private double perlinScale; |
47 | | - @lombok.Getter(onMethod_ = {@JsonProperty("perlinSeed")}) |
48 | | - @lombok.Setter(onMethod_ = {@JsonProperty("perlinSeed")}) |
49 | 24 | private double perlinSeed; |
50 | | - @lombok.Getter(onMethod_ = {@JsonProperty("pivotX")}) |
51 | | - @lombok.Setter(onMethod_ = {@JsonProperty("pivotX")}) |
52 | 25 | private double pivotX; |
53 | | - @lombok.Getter(onMethod_ = {@JsonProperty("pivotY")}) |
54 | | - @lombok.Setter(onMethod_ = {@JsonProperty("pivotY")}) |
55 | 26 | private double pivotY; |
56 | | - @lombok.Getter(onMethod_ = {@JsonProperty("size")}) |
57 | | - @lombok.Setter(onMethod_ = {@JsonProperty("size")}) |
58 | 27 | private long size; |
59 | | - @lombok.Getter(onMethod_ = {@JsonProperty("tileIds")}) |
60 | | - @lombok.Setter(onMethod_ = {@JsonProperty("tileIds")}) |
61 | 28 | private List<Long> tileIDS; |
62 | | - @lombok.Getter(onMethod_ = {@JsonProperty("tileMode")}) |
63 | | - @lombok.Setter(onMethod_ = {@JsonProperty("tileMode")}) |
64 | 29 | private TileMode tileMode; |
65 | | - @lombok.Getter(onMethod_ = {@JsonProperty("uid")}) |
66 | | - @lombok.Setter(onMethod_ = {@JsonProperty("uid")}) |
67 | 30 | private long uid; |
68 | | - @lombok.Getter(onMethod_ = {@JsonProperty("xModulo")}) |
69 | | - @lombok.Setter(onMethod_ = {@JsonProperty("xModulo")}) |
70 | 31 | private long xModulo; |
71 | | - @lombok.Getter(onMethod_ = {@JsonProperty("yModulo")}) |
72 | | - @lombok.Setter(onMethod_ = {@JsonProperty("yModulo")}) |
73 | 32 | private long yModulo; |
| 33 | + |
| 34 | + /** |
| 35 | + * If FALSE, the rule effect isn't applied, and no tiles are generated. |
| 36 | + */ |
| 37 | + @JsonProperty("active") |
| 38 | + public boolean getActive() { return active; } |
| 39 | + @JsonProperty("active") |
| 40 | + public void setActive(boolean value) { this.active = value; } |
| 41 | + |
| 42 | + /** |
| 43 | + * When TRUE, the rule will prevent other rules to be applied in the same cell if it matches |
| 44 | + * (TRUE by default). |
| 45 | + */ |
| 46 | + @JsonProperty("breakOnMatch") |
| 47 | + public boolean getBreakOnMatch() { return breakOnMatch; } |
| 48 | + @JsonProperty("breakOnMatch") |
| 49 | + public void setBreakOnMatch(boolean value) { this.breakOnMatch = value; } |
| 50 | + |
| 51 | + /** |
| 52 | + * Chances for this rule to be applied (0 to 1) |
| 53 | + */ |
| 54 | + @JsonProperty("chance") |
| 55 | + public double getChance() { return chance; } |
| 56 | + @JsonProperty("chance") |
| 57 | + public void setChance(double value) { this.chance = value; } |
| 58 | + |
| 59 | + /** |
| 60 | + * Checker mode Possible values: `None`, `Horizontal`, `Vertical` |
| 61 | + */ |
| 62 | + @JsonProperty("checker") |
| 63 | + public Checker getChecker() { return checker; } |
| 64 | + @JsonProperty("checker") |
| 65 | + public void setChecker(Checker value) { this.checker = value; } |
| 66 | + |
| 67 | + /** |
| 68 | + * If TRUE, allow rule to be matched by flipping its pattern horizontally |
| 69 | + */ |
| 70 | + @JsonProperty("flipX") |
| 71 | + public boolean getFlipX() { return flipX; } |
| 72 | + @JsonProperty("flipX") |
| 73 | + public void setFlipX(boolean value) { this.flipX = value; } |
| 74 | + |
| 75 | + /** |
| 76 | + * If TRUE, allow rule to be matched by flipping its pattern vertically |
| 77 | + */ |
| 78 | + @JsonProperty("flipY") |
| 79 | + public boolean getFlipY() { return flipY; } |
| 80 | + @JsonProperty("flipY") |
| 81 | + public void setFlipY(boolean value) { this.flipY = value; } |
| 82 | + |
| 83 | + /** |
| 84 | + * Default IntGrid value when checking cells outside of level bounds |
| 85 | + */ |
| 86 | + @JsonProperty("outOfBoundsValue") |
| 87 | + public Long getOutOfBoundsValue() { return outOfBoundsValue; } |
| 88 | + @JsonProperty("outOfBoundsValue") |
| 89 | + public void setOutOfBoundsValue(Long value) { this.outOfBoundsValue = value; } |
| 90 | + |
| 91 | + /** |
| 92 | + * Rule pattern (size x size) |
| 93 | + */ |
| 94 | + @JsonProperty("pattern") |
| 95 | + public List<Long> getPattern() { return pattern; } |
| 96 | + @JsonProperty("pattern") |
| 97 | + public void setPattern(List<Long> value) { this.pattern = value; } |
| 98 | + |
| 99 | + /** |
| 100 | + * If TRUE, enable Perlin filtering to only apply rule on specific random area |
| 101 | + */ |
| 102 | + @JsonProperty("perlinActive") |
| 103 | + public boolean getPerlinActive() { return perlinActive; } |
| 104 | + @JsonProperty("perlinActive") |
| 105 | + public void setPerlinActive(boolean value) { this.perlinActive = value; } |
| 106 | + |
| 107 | + @JsonProperty("perlinOctaves") |
| 108 | + public double getPerlinOctaves() { return perlinOctaves; } |
| 109 | + @JsonProperty("perlinOctaves") |
| 110 | + public void setPerlinOctaves(double value) { this.perlinOctaves = value; } |
| 111 | + |
| 112 | + @JsonProperty("perlinScale") |
| 113 | + public double getPerlinScale() { return perlinScale; } |
| 114 | + @JsonProperty("perlinScale") |
| 115 | + public void setPerlinScale(double value) { this.perlinScale = value; } |
| 116 | + |
| 117 | + @JsonProperty("perlinSeed") |
| 118 | + public double getPerlinSeed() { return perlinSeed; } |
| 119 | + @JsonProperty("perlinSeed") |
| 120 | + public void setPerlinSeed(double value) { this.perlinSeed = value; } |
| 121 | + |
| 122 | + /** |
| 123 | + * X pivot of a tile stamp (0-1) |
| 124 | + */ |
| 125 | + @JsonProperty("pivotX") |
| 126 | + public double getPivotX() { return pivotX; } |
| 127 | + @JsonProperty("pivotX") |
| 128 | + public void setPivotX(double value) { this.pivotX = value; } |
| 129 | + |
| 130 | + /** |
| 131 | + * Y pivot of a tile stamp (0-1) |
| 132 | + */ |
| 133 | + @JsonProperty("pivotY") |
| 134 | + public double getPivotY() { return pivotY; } |
| 135 | + @JsonProperty("pivotY") |
| 136 | + public void setPivotY(double value) { this.pivotY = value; } |
| 137 | + |
| 138 | + /** |
| 139 | + * Pattern width and height. Should only be 1,3,5 or 7. |
| 140 | + */ |
| 141 | + @JsonProperty("size") |
| 142 | + public long getSize() { return size; } |
| 143 | + @JsonProperty("size") |
| 144 | + public void setSize(long value) { this.size = value; } |
| 145 | + |
| 146 | + /** |
| 147 | + * Array of all the tile IDs. They are used randomly or as stamps, based on `tileMode` value. |
| 148 | + */ |
| 149 | + @JsonProperty("tileIds") |
| 150 | + public List<Long> getTileIDS() { return tileIDS; } |
| 151 | + @JsonProperty("tileIds") |
| 152 | + public void setTileIDS(List<Long> value) { this.tileIDS = value; } |
| 153 | + |
| 154 | + /** |
| 155 | + * Defines how tileIds array is used Possible values: `Single`, `Stamp` |
| 156 | + */ |
| 157 | + @JsonProperty("tileMode") |
| 158 | + public TileMode getTileMode() { return tileMode; } |
| 159 | + @JsonProperty("tileMode") |
| 160 | + public void setTileMode(TileMode value) { this.tileMode = value; } |
| 161 | + |
| 162 | + /** |
| 163 | + * Unique Int identifier |
| 164 | + */ |
| 165 | + @JsonProperty("uid") |
| 166 | + public long getUid() { return uid; } |
| 167 | + @JsonProperty("uid") |
| 168 | + public void setUid(long value) { this.uid = value; } |
| 169 | + |
| 170 | + /** |
| 171 | + * X cell coord modulo |
| 172 | + */ |
| 173 | + @JsonProperty("xModulo") |
| 174 | + public long getXModulo() { return xModulo; } |
| 175 | + @JsonProperty("xModulo") |
| 176 | + public void setXModulo(long value) { this.xModulo = value; } |
| 177 | + |
| 178 | + /** |
| 179 | + * Y cell coord modulo |
| 180 | + */ |
| 181 | + @JsonProperty("yModulo") |
| 182 | + public long getYModulo() { return yModulo; } |
| 183 | + @JsonProperty("yModulo") |
| 184 | + public void setYModulo(long value) { this.yModulo = value; } |
74 | 185 | } |
0 commit comments