MiniQuake2

src/miniquake2/game/gameplay/types.ml

Provides miniquake2 game gameplay types facilities for this project.

Package
miniquake2.game.gameplay.types
Reachable
Yes

Imports

Declarations

miniquake2.game.gameplay.types.Combatant struct

createCombatant

function createCombatant(number, health)

Create combatant.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
healthdynamic—health value consumed by this operation.

View source

createInventory

function createInventory(itemSlots)

Create inventory.

ParameterTypeDefaultDescription
itemSlotsdynamic—itemSlots value consumed by this operation.

View source

createItemEntity

function createItemEntity(number, item)

Create item entity.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
itemdynamic—item value consumed by this operation.

View source

createPlayer

function createPlayer(number, itemSlots)

Create player.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
itemSlotsdynamic—itemSlots value consumed by this operation.

View source

damageRequest

function damageRequest(direction, point, damage, knockback, flags, meansOfDeath)

Return the damage request value.

ParameterTypeDefaultDescription
directiondynamic—direction value consumed by this operation.
pointdynamic—point value consumed by this operation.
damagedynamic—damage value consumed by this operation.
knockbackdynamic—knockback value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

miniquake2.game.gameplay.types.DamageRequest struct

miniquake2.game.gameplay.types.DamageResult struct

miniquake2.game.gameplay.types.GameplayPlayer struct

miniquake2.game.gameplay.types.Inventory struct

itemAction

function itemAction(success, reason, amount)

Return the item action value.

ParameterTypeDefaultDescription
successdynamic—success value consumed by this operation.
reasondynamic—reason value consumed by this operation.
amountdynamic—amount value consumed by this operation.

View source

miniquake2.game.gameplay.types.ItemAction struct

miniquake2.game.gameplay.types.ItemDefinition struct

miniquake2.game.gameplay.types.ItemEntity struct

miniquake2.game.gameplay.types.ItemRegistry struct

itemRuleData

function itemRuleData(kind, armorBase, armorMax, normalProtection, energyProtection, healthCount, healthStyle, duration)

Return the item rule data value.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
armorBasedynamic—armorBase value consumed by this operation.
armorMaxdynamic—armorMax value consumed by this operation.
normalProtectiondynamic—normalProtection value consumed by this operation.
energyProtectiondynamic—energyProtection value consumed by this operation.
healthCountdynamic—Number of health to process.
healthStyledynamic—healthStyle value consumed by this operation.
durationdynamic—duration value consumed by this operation.

View source

miniquake2.game.gameplay.types.ItemRuleData struct

pickupContext

function pickupContext(deathmatch, cooperative, dmFlags, time)

Pick up context.

ParameterTypeDefaultDescription
deathmatchdynamic—deathmatch value consumed by this operation.
cooperativedynamic—cooperative value consumed by this operation.
dmFlagsdynamic—dmFlags value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

miniquake2.game.gameplay.types.PickupContext struct

miniquake2.game.gameplay.types.PowerArmorResult struct

miniquake2.game.gameplay.types.PrecacheResult struct

miniquake2.game.gameplay.types.WeaponFrames struct

miniquake2.game.gameplay.types.WeaponStep struct