Add a missing tile encoding spec for one-way walls
This commit is contained in:
parent
15a8be1c15
commit
50ebd95509
@ -926,6 +926,22 @@ const TILE_ENCODING = {
|
||||
modifier: modifier_color,
|
||||
is_extension: true,
|
||||
},
|
||||
0xf4: {
|
||||
name: 'one_way_walls',
|
||||
has_next: true,
|
||||
is_extension: true,
|
||||
extra_args: [
|
||||
{
|
||||
size: 1,
|
||||
decode(tile, mask) {
|
||||
tile.edges = mask;
|
||||
},
|
||||
encode(tile) {
|
||||
return tile.edges;
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
const REVERSE_TILE_ENCODING = {};
|
||||
for (let [tile_byte, spec] of Object.entries(TILE_ENCODING)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user