Xonotic
all.qh File Reference
#include <common/command/_mod.qh>
#include "item.qh"
+ Include dependency graph for all.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REGISTER_ITEM(id, class)   REGISTER(Items, ITEM, id, m_id, NEW(class))
 

Functions

void Dump_Items ()
 
 GENERIC_COMMAND (dumpitems, "Dump all items to the console", false)
 
 STATIC_INIT (Items)
 

Macro Definition Documentation

◆ REGISTER_ITEM

#define REGISTER_ITEM (   id,
  class 
)    REGISTER(Items, ITEM, id, m_id, NEW(class))

Definition at line 13 of file all.qh.

Function Documentation

◆ Dump_Items()

void Dump_Items ( )

Definition at line 3 of file all.qc.

References FOREACH, and ITEM_HANDLE.

Referenced by GENERIC_COMMAND(), and STATIC_INIT().

4 {
5  FOREACH(Items, true, ITEM_HANDLE(Show, it));
6 }
#define ITEM_HANDLE(signal,...)
Definition: item.qh:103
#define FOREACH(list, cond, body)
Definition: iter.qh:19
+ Here is the caller graph for this function:

◆ GENERIC_COMMAND()

GENERIC_COMMAND ( dumpitems  ,
"Dump all items to the console"  ,
false   
)

Definition at line 36 of file all.qh.

References CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, Dump_Items(), Item_Model(), and LOG_HELP.

36  {
37  switch (request) {
38  case CMD_REQUEST_COMMAND: {
39  Dump_Items();
40  return;
41  }
42  default:
43  case CMD_REQUEST_USAGE: {
44  LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " dumpitems");
45  return;
46  }
47  }
48 }
const int CMD_REQUEST_USAGE
Definition: command.qh:4
#define LOG_HELP(...)
Definition: log.qh:95
const int CMD_REQUEST_COMMAND
Definition: command.qh:3
void Dump_Items()
Definition: all.qc:3
+ Here is the call graph for this function:

◆ STATIC_INIT()

STATIC_INIT ( Items  )

Definition at line 32 of file all.qh.

References Dump_Items(), and FOREACH.

32 { FOREACH(Items, true, it.m_id = i); }
#define FOREACH(list, cond, body)
Definition: iter.qh:19
+ Here is the call graph for this function: