DEADSOFTWARE

mplat triggers can make sound now
[d2df-sdl.git] / src / shared / mapdef_impl.inc
index 25281132013dedf705dcb5e17e123749fd983254..1b85d7beae23bcc169951270735671ce20be8420 100644 (file)
@@ -22,6 +22,7 @@ function TDynRecordHelper.trigTHeight (): Word; inline; begin result := Word(get
 function TDynRecordHelper.trigWait (): Word; inline; begin result := Word(getFieldWithType('wait', TDynField.TType.TUShort).ival); end;
 function TDynRecordHelper.trigPressCount (): Word; inline; begin result := Word(getFieldWithType('count', TDynField.TType.TUShort).ival); end;
 function TDynRecordHelper.trigExtRandom (): Boolean; inline; begin result := (getFieldWithType('ext_random', TDynField.TType.TBool).ival <> 0); end;
+function TDynRecordHelper.trigSound (): AnsiString; inline; begin result := utf2win(getFieldWithType('sound', TDynField.TType.TString).sval); end;
 
 // TRIGGER_SECRET