GetLayerCount
Returns the number of static layers at the given map position (X, Y) in world WorldNum.
Deprecated: This method internally calls ReadStaticsXY to get the static count. It is recommended to call ReadStaticsXY directly and check the
StaticCountfield instead.
Возвращает количество статических слоёв в указанной позиции карты (X, Y) в мире WorldNum.
Устаревший: Метод внутри вызывает ReadStaticsXY. Рекомендуется вызывать ReadStaticsXY напрямую и проверять поле
StaticCount.
function GetLayerCount(X: Word; Y: Word; WorldNum: Byte): Byte;
def GetLayerCount(X: int, Y: int, WorldNum: int) -> int: ...
begin
AddToSystemJournal('Layers: ' + IntToStr(GetLayerCount(1000, 1000, WorldNum)));
end.
AddToSystemJournal(f'Layers: {GetLayerCount(1000, 1000, WorldNum())}')