Class: Terrain
Lua
C++
Edit

Terrain::GetLayers

This method gets all the layers in use on the terrain at the specified coordinate.

Syntax

std::vector<int> GetLayers(const int x, const int y) std::vector<int> GetLayers(const iVec2 coord)

Parameter Description
coord, (x, y) terrain coordinate

Returns

Returns an array containing all the layer indexes in use at the specified point, sorted from most to least influential.

Copyright © 2024 Ultra Software.
All rights reserved.