✨ Draw UOA designs

This commit is contained in:
2022-07-19 20:09:24 +02:00
parent 0e5cb1b48b
commit 7a67e62398
3 changed files with 57 additions and 20 deletions
+4 -3
View File
@@ -42,7 +42,8 @@ type
constructor Create(AIdxFile, ABinFile: String);
destructor Destroy; override;
function LoadTiles(AHeader: TUoaDesignHeader; AOffsetX, AOffsetY: Word): TStaticItemList;
function LoadTiles(AHeader: TUoaDesignHeader; AOffsetX, AOffsetY: Word;
AOffsetZ: ShortInt): TStaticItemList;
public
property Headers: TUoaDesignHeaders read FHeaders;
end;
@@ -120,7 +121,7 @@ begin
end;
function TUoaDesigns.LoadTiles(AHeader: TUoaDesignHeader; AOffsetX,
AOffsetY: Word): TStaticItemList;
AOffsetY: Word; AOffsetZ: ShortInt): TStaticItemList;
var
i: Integer;
tile: TStaticItem;
@@ -144,7 +145,7 @@ begin
tile.TileID := ReadInt;
tile.X := AOffsetX + ReadInt;
tile.Y := AOffsetY + ReadInt;
tile.Z := ReadInt;
tile.Z := AOffsetZ + ReadInt;
ReadInt; // TODO: Level??
if version = 1 then