GetLandTileData

Detailed information about Land tile, including Flags and Name.

NB: Tile can be obtained from GetMapCell method NB: In PS you can use method AnsiByteArrayToString to convert “array of Char” to “String”

Pascal Syntax:

function GetLandTileData(Tile : Word) : TLandTileData;

TLandTileData = record
  Flags : Cardinal;
  Flags2 : Cardinal;
  TextureID : Word;
  Name : array[0..19] of Char;
end;

Pascal Example:

var S : String;
    zz: TLandTileData;
begin
  zz := GetLandTileData($49);
  S:= AnsiByteArrayToString(zz.Name);  
  AddToSystemJournal(S);
END.

Python Syntax:

def GetCell(X, Y, WorldNum): --> dict