API function index
Status: Implemented (API 1.24). Generated from
client/clight/idl/clight_api.jsonbytools/docs/gen_api_reference.py; do not edit by hand.
API 1.24 has 613 functions, 59 events, 113 structs and 71 enums. Each table below is one IDL module. Anything not listed in these tables does not exist yet; the hand-written pages mark such parts as Planned.
Naming
- C:
cl_<name>, every function is also a field of thecl_api_v1table. - Lua:
cl.<namespace>.<verb>, mirroring the C name (cl_buf_write_i32iscl.buf.write_i32), and a method on the handle (player:give(...)). The old module spellings (cl.net.buf_write_i32) still work. - C++: a method on the handle class (
clight::Entity::give) and a free function in the module’s namespace (clight::entity::player_give; the name without the module prefix). Functions that can fail returnclight::Expected<T>.