GTileMap.parseCsv

Fault parseCsv(IStr csv, short newTileWidth, short newTileHeight, Sz layerId = 0, bool isMinZero = false, IStr file = __FILE__, Sz line = __LINE__)

Parses a CSV string into the specified layer, using the given tile size. Returns a fault if the CSV is empty, contains invalid values, or exceeds the hard layer bounds. If isMinZero is true, tile ids are decremented by one to convert from 1-based to 0-based indexing.

Fault parseCsv(IStr csv, Sz layerId = 0, bool isMinZero = false, IStr file = __FILE__, Sz line = __LINE__)

Parses a CSV string into the specified layer using the current tile size. Returns a fault if parsing fails.