[Editor] Enable serialization and deserialization for passage map of ObjectLayer

This commit is contained in:
2021-02-17 22:42:48 +01:00
parent 7f57514b18
commit 973b0ada58
5 changed files with 55 additions and 4 deletions

View File

@@ -26,7 +26,16 @@ message TileLayer {
}
message ObjectLayer {
// TODO list of passage abilities
repeated PassageAbility passageMap = 1;
}
enum PassageAbility {
ALLOW = 0;
BLOCK = 1;
UP_ONLY = 2;
DOWN_ONLY = 3;
LEFT_ONLY = 4;
RIGHT_ONLY = 5;
}
message ImageLayer {