# asByte
inline function asByte(x)Converts byte values for the engine.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
src/doomtype.mlDefines primitive numeric limits, byte masks, booleans, and legacy aliases used by translated Doom code.
inline function asByte(x)Converts byte values for the engine.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
const BYTE_MASK = 255Defines byte mask for the doomtype subsystem.
const BYTE_MAX = 255Defines the maximum byte max accepted by the doomtype subsystem.
const MAXCHAR = 127Defines the maximum maxchar accepted by the doomtype subsystem.
const MAXINT = 2147483647Defines the maximum maxint accepted by the doomtype subsystem.
const MAXLONG = 2147483647Defines the maximum maxlong accepted by the doomtype subsystem.
const MAXSHORT = 32767Defines the maximum maxshort accepted by the doomtype subsystem.
const MINCHAR = 128Defines the minimum minchar accepted by the doomtype subsystem.
const MININT = 2147483648Defines the minimum minint accepted by the doomtype subsystem.
const MINLONG = 2147483648Defines the minimum minlong accepted by the doomtype subsystem.
const MINSHORT = 32768Defines the minimum minshort accepted by the doomtype subsystem.