# load
function load(filename)Implements the `load` operation for `miniquake.format.sprite` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
src/miniquake/format/sprite.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/types.ml as t → src/miniquake/types.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction load(filename)Implements the `load` operation for `miniquake.format.sprite` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
function Mod_LoadSpriteFrame(data, offset)Mirror Quake's Mod_LoadSpriteFrame routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function Mod_LoadSpriteGroup(data, offset)Mirror Quake's Mod_LoadSpriteGroup routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function Mod_LoadSpriteModel(data, filename)Mirror Quake's Mod_LoadSpriteModel routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function parse(data, filename)Implements the `parse` operation for `miniquake.format.sprite` (parse).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function parseFrameSet(data, offset)Read and validate frame set.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function parseSingleFrame(data, offset)Read and validate single frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function spriteFrameBounds(frame)Implements the `spriteFrameBounds` operation for `miniquake.format.sprite` (sprite frame bounds).
| Parameter | Type | Default | Description |
|---|---|---|---|
frame | dynamic | — | The frame input consumed by `spriteFrameBounds`. |
function spriteModelBounds(model)Implements the `spriteModelBounds` operation for `miniquake.format.sprite` (sprite model bounds).
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | Model resource processed by the operation. |