Part of TPG namespace
TPG.GetGameType(typeId)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Look up a game type definition. Never returns nil: an unknown id falls back to control points, so callers on the HUD path can read .name off the result without guarding. That also means a typo'd id shows up as a round that looks like CP rather than as an error, which is worth knowing when a new mode appears not to take effect.
Parameters
| Name | Type | Description |
|---|---|---|
typeId | number | A `GAMEMODE_*` constant. |
Returns
| Type | Description |
|---|---|
table | The definition; see the module summary for its fields. |
Examples
No examples available.
Used In
No usages found in the codebase.