Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
M
 map_find_item
 map_get_data
 map_get_data_swapped
 map_get_item
 map_get_type
 map_is_loaded
 map_num_items
 map_unload_data
 mem_alloc
 mem_comp
 mem_copy
 mem_free
 mem_move
 mem_zero
 modc_connected
 modc_console_init
 modc_entergame
 modc_init
 modc_message
 modc_net_version
 modc_newsnapshot
 modc_predict
 modc_rcon_line
 modc_render
 modc_save_config
 modc_shutdown
 modc_snap_input
 modc_statechange
 mods_client_direct_input
 mods_client_drop
 mods_client_enter
 mods_client_predicted_input
 mods_connected
 mods_console_init
 mods_init
 mods_message
 mods_net_version
 mods_postsnap
 mods_presnap
 mods_shutdown
 mods_snap
 mods_tick
 mods_version
 msg_pack_end
 msg_pack_int
 msg_pack_raw
 msg_pack_start
 msg_pack_string
 msg_unpack_error
 msg_unpack_int
 msg_unpack_raw
 msg_unpack_string
void *map_find_item(int type,
int id)
Searches the map for an item.
void *map_get_data(int index)
Fetches a pointer to a raw data chunk in the map.
void *map_get_data_swapped(int index)
TODO
void *map_get_item(int index,
int *type,
int *id)
Gets an item from the loaded map from index.
void map_get_type(int type,
int *start,
int *num)
Gets the index range of an item type.
int map_is_loaded()
Checks if a map is loaded.
int map_num_items()
Checks the number of items in the loaded map.
void map_unload_data(int index)
TODO
void *mem_alloc_debug(const char *filename,
int line,
unsigned size,
unsigned alignment)
Allocates memory.
int mem_comp(const void *a,
const void *b,
int size)
Compares two blocks of memory
void mem_copy(void *dest,
const void *source,
unsigned size)
Copies a a memory block.
void mem_free(void *block)
Frees a block allocated through mem_alloc.
void mem_move(void *dest,
const void *source,
unsigned size)
Copies a a memory block
void mem_zero(void *block,
unsigned size)
Sets a complete memory block to 0
void modc_connected()
TODO
void modc_console_init()
TODO
void modc_entergame()
Called when the client has successfully connect to a server and loaded a map.
void modc_init()
Called when the client starts.
void modc_message(int msg)
TODO
const char *modc_net_version()
TODO
void modc_newsnapshot()
Called when the client progressed to a new snapshot.
void modc_predict()
TODO
void modc_rcon_line(const char *line)
TODO
void modc_render()
Called every frame to let the game render it self.
void modc_save_config()
TODO
void modc_shutdown()
Called when the client closes down.
int modc_snap_input(int *data)
TODO
void modc_statechange(int new_state,
int old_state)
Called every time client changes state.
void mods_client_direct_input(int cid,
void *input)
Called when the server recives new input from a client.
void mods_client_drop(int cid)
Called when a client drops from the server.
void mods_client_enter(int cid)
Called when a client has joined the game.
void mods_client_predicted_input(int cid,
void *input)
Called when the server applys the predicted input on the client.
void mods_connected(int client_id)
TODO
void mods_console_init()
TODO
void mods_init()
Called when the server is started.
void mods_message(int msg,
int client_id)
TODO
const char *mods_net_version()
TODO
void mods_postsnap()
Called after the server is done sending the snapshots.
void mods_presnap()
Called before the server starts to construct snapshots for the clients.
void mods_shutdown()
Called when the server quits.
void mods_snap(int cid)
Called to create the snapshot for a client.
void mods_tick()
Called with a regular interval to progress the gameplay.
const char *mods_version()
TODO
void msg_pack_end()
TODO
void msg_pack_int(int i)
TODO
void msg_pack_raw(const void *data,
int size)
TODO
void msg_pack_start(int msg,
int flags)
TODO
void msg_pack_string(const char *p,
int limit)
TODO
int msg_unpack_error()
TODO
int msg_unpack_int()
TODO
const unsigned char *msg_unpack_raw(int size)
TODO
const char *msg_unpack_string()
TODO
Close