diff --git a/src/mapdef/mapdef.txt b/src/mapdef/mapdef.txt
index f30c218136283c6dc09fabf852f1531a8dc53130..591eadbc4ec71a5754428347ccd1940cda449d15 100644 (file)
--- a/src/mapdef/mapdef.txt
+++ b/src/mapdef/mapdef.txt
Flags is "flags" type ubyte offset 17 bitset PanelFlag default PANEL_FLAG_NONE omitdefault;
// moving platform options, not in binary
MoveSpeed is "move_speed" type point default (0 0) omitdefault;
+ SizeSpeed is "size_speed" type point default (0 0) omitdefault; // alas, `size` cannot be negative
MoveStart is "move_start" type point default (0 0) omitdefault;
MoveEnd is "move_end" type point default (0 0) omitdefault;
+ SizeEnd is "size_end" type size default (0 0) omitdefault;
MoveActive is "move_active" type bool default false omitdefault;
+ MoveOnce is "move_once" type bool default false omitdefault;
+ EndPosTrigger is "end_pos_trigger" type int trigger default null omitdefault;
+ EndSizeTrigger is "end_size_trigger" type int trigger default null omitdefault;
// not in binary
//Id is "id" type string default "" omitdefault;
// internals
@@ -398,14 +403,14 @@ TriggerData for (TRIGGER_OPENDOOR, TRIGGER_CLOSEDOOR, TRIGGER_DOOR, TRIGGER_DOOR
TriggerData for (TRIGGER_PRESS, TRIGGER_ON, TRIGGER_OFF, TRIGGER_ONOFF) {
//tX is "tx" type int offset 0;
//tY is "ty" type int offset 4;
- Pos is "position" type point offset 0 as txy;
+ Pos is "position" type point offset 0 as txy default (0 0);
//tWidth is "width" type ushort offset 8;
//tHeight is "height" type ushort offset 10;
- Size is "size" type size offset 8 as twh;
- Wait is "wait" type ushort offset 12;
- Count is "count" type ushort offset 14;
+ Size is "size" type size offset 8 as twh default (0 0);
+ Wait is "wait" type ushort offset 12 default 0;
+ Count is "count" type ushort offset 14 default 0;
MonsterID is "monsterid" type int offset 16 monster as monsterid default null;
- ExtRandom is "extrandom" type bool offset 20;
+ ExtRandom is "extrandom" type bool offset 20 default false;
// this one is for moving platforms
PanelId is "panelid" type int panel default null omitdefault;
}