MiniQuake2

src/miniquake2/game/world/core.ml

Provides miniquake2 game world core facilities for this project.

Package
miniquake2.game.world.core
Reachable
Yes

Imports

Declarations

addEntity

function addEntity(world, entity)

Add entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.

View source

advance

function advance(world, targetTime)

Performs the advance operation for the miniquake2 game world core module.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
targetTimedynamic—targetTime value consumed by this operation.

View source

blockedEntity

function blockedEntity(world, entity, other)

Report whether blocked entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.

View source

createWorld

function createWorld(callbacks)

Create world.

ParameterTypeDefaultDescription
callbacksdynamic—callbacks value consumed by this operation.

View source

defaultCallbacks

function defaultCallbacks()

Return the default callbacks value.

View source

emit

function emit(world, kind, entity, detail)

Performs the emit operation for the miniquake2 game world core module.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
kinddynamic—kind value consumed by this operation.
entitydynamic—entity value consumed by this operation.
detaildynamic—detail value consumed by this operation.

View source

findByNumber

function findByNumber(world, number)

Find by number.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

freeEntity

function freeEntity(world, entity)

Release entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.

View source

freeThink

function freeThink(entity, world)

Release think.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

G_UseTargets

function G_UseTargets(entity, activator, world)

Source-traceable entry points retained for later baseq2 registry wiring.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integrate

inline function integrate(world, duration)

Return the integrate value.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
durationdynamic—duration value consumed by this operation.

View source

killEntity

function killEntity(world, entity, inflictor, attacker, damage, point)

Kill entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.

View source

log

function log(world, message)

Return the log value.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

matchingTargets

function matchingTargets(world, targetName)

Return the matching targets value.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
targetNamedynamic—targetName value consumed by this operation.

View source

MAX_WORLD_EVENT_HISTORY

const MAX_WORLD_EVENT_HISTORY = 1024

Defines the max world event history constant used by the miniquake2 game world core module.

View source

noopActorMessage

function noopActorMessage(actor, message)

Return the noop actor message value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

noopActorTransition

function noopActorTransition(actor, waypoint, action, actionTarget, nextTarget, wait, flags)

Return the noop actor transition value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
waypointdynamic—waypoint value consumed by this operation.
actiondynamic—action value consumed by this operation.
actionTargetdynamic—actionTarget value consumed by this operation.
nextTargetdynamic—nextTarget value consumed by this operation.
waitdynamic—wait value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.

View source

noopAreaPortal

function noopAreaPortal(style, isOpen)

Return the noop area portal value.

ParameterTypeDefaultDescription
styledynamic—style value consumed by this operation.
isOpendynamic—isOpen value consumed by this operation.

View source

noopCenterPrint

function noopCenterPrint(entity, message)

Print noop center.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

noopChangeLevel

function noopChangeLevel(entity, other, activator, mapName)

Return the noop change level value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

noopCombatPointTransition

function noopCombatPointTransition(actor, point, nextTarget, hold, clearCombatPoint)

Return the noop combat point transition value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
pointdynamic—point value consumed by this operation.
nextTargetdynamic—nextTarget value consumed by this operation.
holddynamic—hold value consumed by this operation.
clearCombatPointdynamic—clearCombatPoint value consumed by this operation.

View source

noopConsumeKeyItem

function noopConsumeKeyItem(activator, itemClassName)

Consume noop key item.

ParameterTypeDefaultDescription
activatordynamic—activator value consumed by this operation.
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

noopDamage

function noopDamage(target, inflictor, attacker, amount, means)

Return the noop damage value.

ParameterTypeDefaultDescription
targetdynamic—target value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
meansdynamic—means value consumed by this operation.

View source

noopEarthquake

function noopEarthquake(entity, speed, playSound)

Return the noop earthquake value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
speeddynamic—speed value consumed by this operation.
playSounddynamic—playSound value consumed by this operation.

View source

noopEffect

function noopEffect(kind, origin, style, count)

Return the noop effect value.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
origindynamic—origin value consumed by this operation.
styledynamic—style value consumed by this operation.
countdynamic—Number of items or units to process.

View source

noopFireBlaster

function noopFireBlaster(entity, direction, damage, speed)

Fire noop blaster.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.

View source

noopHasKeyItem

function noopHasKeyItem(activator, itemClassName)

Report whether noop has key item.

ParameterTypeDefaultDescription
activatordynamic—activator value consumed by this operation.
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

noopKillBox

function noopKillBox(entity)

Kill noop box.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

noopLaserSparks

function noopLaserSparks(origin, normal, count, color)

Return the noop laser sparks value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
normaldynamic—normal value consumed by this operation.
countdynamic—Number of items or units to process.
colordynamic—color value consumed by this operation.

View source

noopLightStyle

function noopLightStyle(style, pattern)

Return the noop light style value.

ParameterTypeDefaultDescription
styledynamic—style value consumed by this operation.
patterndynamic—pattern value consumed by this operation.

View source

noopLinkEntity

function noopLinkEntity(entity)

Link noop entity.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

noopLog

function noopLog(message)

Return the noop log value.

ParameterTypeDefaultDescription
messagedynamic—Human-readable message associated with the operation.

View source

noopRadiusDamage

function noopRadiusDamage(inflictor, attacker, amount, radius, means)

Return the noop radius damage value.

ParameterTypeDefaultDescription
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
radiusdynamic—radius value consumed by this operation.
meansdynamic—means value consumed by this operation.

View source

noopResolveKeyItem

function noopResolveKeyItem(itemClassName)

Resolve noop key item.

ParameterTypeDefaultDescription
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

noopSetModel

function noopSetModel(entity, modelName)

Set noop model.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
modelNamedynamic—modelName value consumed by this operation.

View source

noopSound

function noopSound(entity, soundName)

Return the noop sound value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
soundNamedynamic—soundName value consumed by this operation.

View source

noopSpawnExternal

function noopSpawnExternal(className, origin, angles, velocity)

Spawn noop external.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
origindynamic—origin value consumed by this operation.
anglesdynamic—angles value consumed by this operation.
velocitydynamic—velocity value consumed by this operation.

View source

noopTargetExplosion

function noopTargetExplosion(origin)

Return the noop target explosion value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.

View source

noopTargetSplash

function noopTargetSplash(origin, direction, count, sounds)

Return the noop target splash value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
directiondynamic—direction value consumed by this operation.
countdynamic—Number of items or units to process.
soundsdynamic—sounds value consumed by this operation.

View source

noopTraceLine

function noopTraceLine(start, finish, ignore)

Trace noop line.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
finishdynamic—finish value consumed by this operation.
ignoredynamic—ignore value consumed by this operation.

View source

pickTarget

function pickTarget(world, targetName)

Choose target.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
targetNamedynamic—targetName value consumed by this operation.

View source

runFrame

function runFrame(world)

Run frame.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.

View source

spawnEntity

function spawnEntity(world, className)

Spawn entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

Think_Delay

function Think_Delay(entity, world)

Run delay.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

thinkDelayed

function thinkDelayed(entity, world)

Run delayed.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

touchEntity

function touchEntity(world, entity, other)

Handle entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.

View source

useEntity

function useEntity(world, entity, other, activator)

Use entity.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.

View source

useTargets

function useTargets(world, entity, activator)

Use targets.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.
entitydynamic—entity value consumed by this operation.
activatordynamic—activator value consumed by this operation.

View source

worldCoreAppendEvent

function worldCoreAppendEvent(values, value)

Append world core event.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

zeroClockSeconds

function zeroClockSeconds()

Return the zero clock seconds value.

View source

zeroRandomIndex

function zeroRandomIndex(count)

Return the zero random index.

ParameterTypeDefaultDescription
countdynamic—Number of items or units to process.

View source

zeroRandomSigned

function zeroRandomSigned()

Return the zero random signed value.

View source