diff --git a/src/shared/MAPDEF.pas b/src/shared/MAPDEF.pas
index 6400264bb438dd69ca6907eb7dbf52f362a66ff4..8f6a3cefbc4a080e54a1dacc20b173b7ae1f7059 100644 (file)
--- a/src/shared/MAPDEF.pas
+++ b/src/shared/MAPDEF.pas
public
constructor Create (ax, ay: LongInt);
public
constructor Create (ax, ay: LongInt);
+
+ function isZero (): Boolean; inline;
end;
Char16 = packed array[0..15] of Char;
end;
Char16 = packed array[0..15] of Char;
function Alpha (): Byte; inline;
function Flags (): Byte; inline;
function Alpha (): Byte; inline;
function Flags (): Byte; inline;
+ function moveSpeed (): TDFPoint; inline;
+ function moveStart (): TDFPoint; inline;
+ function moveEnd (): TDFPoint; inline;
+
// texture
function Resource (): AnsiString; inline;
function Anim (): Boolean; inline;
// texture
function Resource (): AnsiString; inline;
function Anim (): Boolean; inline;
// ////////////////////////////////////////////////////////////////////////// //
constructor TDFPoint.Create (ax, ay: LongInt); begin X := ax; Y := ay; end;
// ////////////////////////////////////////////////////////////////////////// //
constructor TDFPoint.Create (ax, ay: LongInt); begin X := ax; Y := ay; end;
+function TDFPoint.isZero (): Boolean; inline; begin result := (X = 0) and (Y = 0); end;
// ////////////////////////////////////////////////////////////////////////// //
// ////////////////////////////////////////////////////////////////////////// //
end;
end;
+// ////////////////////////////////////////////////////////////////////////// //
+function TDynRecordHelper.moveSpeed (): TDFPoint; inline; begin result := getPointField('move_speed'); end;
+function TDynRecordHelper.moveStart (): TDFPoint; inline; begin result := getPointField('move_start'); end;
+function TDynRecordHelper.moveEnd (): TDFPoint; inline; begin result := getPointField('move_end'); end;
+
+
// ////////////////////////////////////////////////////////////////////////// //
function TDynRecordHelper.getFieldWithType (const aname: AnsiString; atype: TDynField.TType): TDynField; inline;
begin
// ////////////////////////////////////////////////////////////////////////// //
function TDynRecordHelper.getFieldWithType (const aname: AnsiString; atype: TDynField.TType): TDynField; inline;
begin