X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2Fmapdef.txt;h=f9145c312b1e5d6bab5d20ddf436f5234381f660;hb=7d5ba44e3ea987adb8c846236613e8e5590ba750;hp=ed949e46c3f798daf426417ad0c990e9fbed631b;hpb=8b49757c73738465bc7d0bfbb5156576832ad3cd;p=d2df-sdl.git diff --git a/src/shared/mapdef.txt b/src/shared/mapdef.txt index ed949e4..f9145c3 100644 --- a/src/shared/mapdef.txt +++ b/src/shared/mapdef.txt @@ -105,7 +105,7 @@ TTriggerRec_1 is "trigger" size 148 bytes binblock 6 { TriggerType is "type" type ubyte offset 17 enum TriggerType; ActivateType is "activatetype" type ubyte offset 18 bitset ActivateType; Keys is "keys" type ubyte offset 19 bitset Key default KEY_NONE omitdefault; - DATA is "triggerdata" type byte[128] offset 20 triggerdata; // the only special nested structure + DATA is "triggerdata" type trigdata[128] offset 20; // the only special nested structure // not in binary //Id is "id" type string default "" omitdefault; // internals @@ -376,15 +376,15 @@ TriggerData for TRIGGER_EXIT { TriggerData for TRIGGER_TELEPORT { TargetPoint is "target" type point offset 0; - d2d_teleport is "d2d" type bool offset 8; - silent_teleport is "silent" type bool offset 9; - TlpDir is "direction" type ubyte offset 10 enum DirType; + d2d_teleport is "d2d" type bool offset 8 default false omitdefault; + silent_teleport is "silent" type bool offset 9 default false omitdefault; + TlpDir is "direction" type ubyte offset 10 enum DirType default DIR_LEFT omitdefault; } TriggerData for (TRIGGER_OPENDOOR, TRIGGER_CLOSEDOOR, TRIGGER_DOOR, TRIGGER_DOOR5, TRIGGER_CLOSETRAP, TRIGGER_TRAP, TRIGGER_LIFTUP, TRIGGER_LIFTDOWN, TRIGGER_LIFT) { PanelID is "panelid" type int offset 0 panel; - NoSound is "silent" type bool offset 4; - d2d_doors is "d2d" type bool offset 5; + NoSound is "silent" type bool offset 4 default false omitdefault; + d2d_doors is "d2d" type bool offset 5 default false omitdefault; } TriggerData for (TRIGGER_PRESS, TRIGGER_ON, TRIGGER_OFF, TRIGGER_ONOFF) {