Skip to main content

Module userdata

Module userdata 

Source
Expand description

Types and traits related to host bindings for the QuakeC runtime.

Structs§

FnCall
The function call context, containing both the user context and the current VM context (which can be used to call into QuakeC functions).

Enums§

AddrError
An error when getting/setting an address

Traits§

Context
User-provided global context. This is passed in to all functions and entity getters/setters.
DynEq
A dynamic form of PartialEq that can be used in type-erased contexts.
EntityHandle
A handle to a host entity. This should not be the type that stores the actual entity data. All values in qcvm are immutable, the only mutable state is the context. This should be implemented for a handle to an entity, with the entity data itself being stored in the context.
ErasedContext
A type-erased context that can be used for dynamic dispatch.
ErasedFunction
Type-erased version of Function, for dynamic dispatch.
Function
A function callable from QuakeC code. This may call further internal functions, and is passed a configurable context type.
QCType
The type of values that can be used in the QuakeC runtime.