Level Script API

From DF21 Wiki
Revision as of 23:23, 22 March 2025 by Jerethk (talk | contribs) (Created page with "== Properties == === minLayer === * Get only * Gets the minimum map layer (signed integer) * Usage example: <code>int i = level.minLayer;</code> === maxLayer === * Get only * Gets the maximum map layer (signed integer) * Usage example: <code>int i = level.maxLayer;</code> === sectorCount === * Get only * Gets the total count of sectors (signed integer) * Usage example: <code>int i = level.sectorCount</code> === secretCount === * Get only * Gets the total count of secr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Properties

minLayer

  • Get only
  • Gets the minimum map layer (signed integer)
  • Usage example: int i = level.minLayer;

maxLayer

  • Get only
  • Gets the maximum map layer (signed integer)
  • Usage example: int i = level.maxLayer;

sectorCount

  • Get only
  • Gets the total count of sectors (signed integer)
  • Usage example: int i = level.sectorCount

secretCount

  • Get only
  • Gets the total count of secrets (signed integer)
  • Usage example: int i = level.secretCount

texturetCount

  • Get only
  • Gets the total count of textures (signed integer)
  • Usage example: int i = level.textureCount


Functions

getSector