# createRegistry
function createRegistry()Create registry.
src/miniquake2/game/base/spawn_registry.mlProvides miniquake2 game base spawn registry facilities for this project.
miniquake2/game/ai/archetypes.ml as gaiarchetypes → src/miniquake2/game/ai/archetypes.mlminiquake2/game/base/types.ml as btypes → src/miniquake2/game/base/types.mlminiquake2/game/constants.ml as gconstants → src/miniquake2/game/constants.mlminiquake2/game/gameplay/item_rules.ml as gprules → src/miniquake2/game/gameplay/item_rules.mlminiquake2/game/gameplay/registry.ml as gpregistry → src/miniquake2/game/gameplay/registry.mlstd/string.ml as bstring → ../MiniLangCompilerML/std/string.ml external dependencyfunction createRegistry()Create registry.
function defaultRegistry()Performs the defaultRegistry operation for the miniquake2 game base spawn registry module.
function find(registry, className)Finds find used by the miniquake2 game base spawn registry module.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | registry value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
const MOVETYPE_NONE = 0Defines the movetype none constant used by the miniquake2 game base spawn registry module.
const MOVETYPE_PUSH = 7Defines the movetype push constant used by the miniquake2 game base spawn registry module.
function register(registry, className, spawnFunction)Register state.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | registry value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
spawnFunction | dynamic | — | spawnFunction value consumed by this operation. |
function SP_brush_component(entity)Spawn brush component.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_consumed(entity)Spawn consumed.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_func_door(entity)Spawn func door.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_func_water(entity)Spawn func water.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_gameplay_item(entity)Spawn gameplay item.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_info_player(entity)Spawn info player.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_info_player_start(entity)Spawn info player start.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_light(entity)Spawn light.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_misc_actor(entity)Spawn misc actor.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_monster(entity)Spawn monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_target_speaker(entity)Spawn target speaker.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_trigger_once(entity)Spawn trigger once.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_world_component(entity)Spawn world component.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function SP_worldspawn(entity)Spawn worldspawn.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |