|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "oo.qh"Go to the source code of this file.
Macros | |
| #define | _R_DEL(r) |
| #define | _R_GET(r, i) |
| #define | _R_MAP(r, max) |
| #define | _R_SET(r, i, e) |
| #define | _REGISTER_REGISTRY(id, str) |
| #define | EVAL_REGISTER(...) |
| #define | EVAL_REGISTRY_SORT(...) |
| #define | REGISTER(...) |
| Register a new entity with a registry. | |
| #define | REGISTER_4(registry, id, fld, inst) |
| #define | REGISTER_5(registry, ns, id, fld, inst) |
| #define | REGISTER_INIT(id) |
| #define | REGISTER_REGISTRY(id) |
| #define | REGISTRY(id, max) |
| Declare a new registry. | |
| #define | REGISTRY_BEGIN(id) |
| Called before initializing a registry. | |
| #define | REGISTRY_BEGIN_(id) |
| #define | REGISTRY_CHECK(id) |
| #define | REGISTRY_COUNT(id) |
| #define | REGISTRY_DEFINE_GET(id, null) |
| #define | REGISTRY_DEPENDS(id, dep) |
| Add registry dependencies to a registry. | |
| #define | REGISTRY_DEPENDS_(id) |
| #define | REGISTRY_END(id) |
| Called after initializing a registry. | |
| #define | REGISTRY_END_(id) |
| #define | REGISTRY_GET(id, i) |
| #define | REGISTRY_HASH(id) |
| #define | REGISTRY_MAX(id) |
| #define | REGISTRY_NEXT enemy |
| internal next pointer | |
| #define | REGISTRY_PUSH(registry, fld, it) |
| #define | REGISTRY_RESERVE(registry, fld, id, suffix) |
| #define | REGISTRY_SORT(...) |
| #define | REGISTRY_SORT_1(id) |
| #define | REGISTRY_SORT_2(id, skip) |
Functions | |
| void | _regCheck (int i, int _max) |
| ERASEABLE ACCUMULATE void | Registry_check (string r, string sv) |
| void | Registry_send (string id, string hash) |
| ERASEABLE ACCUMULATE void | Registry_send_all () |
Variables | |
| string | registered_id |
| registered item identifier | |
| entity | REGISTRY_NEXT |
| #define _R_DEL | ( | r | ) |
Definition at line 9 of file registry.qh.
| #define _R_GET | ( | r, | |
| i ) |
Definition at line 7 of file registry.qh.
| #define _R_MAP | ( | r, | |
| max ) |
Definition at line 6 of file registry.qh.
| #define _R_SET | ( | r, | |
| i, | |||
| e ) |
Definition at line 8 of file registry.qh.
| #define _REGISTER_REGISTRY | ( | id, | |
| str ) |
Definition at line 216 of file registry.qh.
| #define EVAL_REGISTER | ( | ... | ) |
Definition at line 88 of file registry.qh.
| #define EVAL_REGISTRY_SORT | ( | ... | ) |
Definition at line 129 of file registry.qh.
| #define REGISTER | ( | ... | ) |
Register a new entity with a registry.
Must be followed by a semicolon or a function body with a this parameter. Wrapper macros may perform actions after user initialization like so: #define REGISTER_FOO(id) \ REGISTER(Foos, FOO, id, m_id, NEW(Foo)) { \ print("Registering foo #", this.m_id + 1, "\n"); \ } \ REGISTER_INIT(FOO, id)
| registry | The registry to add each entity to. |
| ns | Short for namespace, prefix for each global (ns##_##id) |
| id | The identifier of the current entity being registered |
| fld | The field to store the locally unique unique entity id |
| inst | An expression to create a new instance, invoked for every registration |
Definition at line 87 of file registry.qh.
Referenced by REGISTER().
| #define REGISTER_4 | ( | registry, | |
| id, | |||
| fld, | |||
| inst ) |
Definition at line 90 of file registry.qh.
| #define REGISTER_5 | ( | registry, | |
| ns, | |||
| id, | |||
| fld, | |||
| inst ) |
Definition at line 89 of file registry.qh.
| #define REGISTER_INIT | ( | id | ) |
Definition at line 122 of file registry.qh.
| #define REGISTER_REGISTRY | ( | id | ) |
| #define REGISTRY | ( | id, | |
| max ) |
Declare a new registry.
Don't forget to call REGISTER_REGISTRY and REGISTRY_DEFINE_GET: REGISTER_REGISTRY(Foos) REGISTRY_DEFINE_GET(Foos, null_ent)
Definition at line 26 of file registry.qh.
| #define REGISTRY_BEGIN | ( | id | ) |
| #define REGISTRY_BEGIN_ | ( | id | ) |
Definition at line 51 of file registry.qh.
| #define REGISTRY_CHECK | ( | id | ) |
Definition at line 175 of file registry.qh.
| #define REGISTRY_COUNT | ( | id | ) |
Definition at line 18 of file registry.qh.
Referenced by Dump_Turret_Settings(), havocbot_chooseweapon(), HUD_Configure_Frame(), HUD_Main(), HUD_Panel_Check_Mouse_Pos(), HUD_Panel_CheckMove(), HUD_Panel_CheckResize(), HUD_Panel_ExportCfg(), HUD_Panel_FirstInDrawQ(), HUD_Panel_Highlight(), HUD_Panel_InputEvent(), HUD_Weapons(), NET_HANDLE(), Net_Write_Effect(), SettingSource::reload(), reset_tab_panels(), Scoreboard_AccuracyStats_Draw(), Scoreboard_ItemStats_Draw(), STATIC_INIT(), and STATIC_INIT().
| #define REGISTRY_DEFINE_GET | ( | id, | |
| null ) |
Definition at line 40 of file registry.qh.
Referenced by REGISTER(), REGISTER_MONSTER(), REGISTER_RADARICON(), REGISTER_TURRET(), REGISTER_VEHICLE(), REGISTER_WEAPON(), and STATIC_INIT().
| #define REGISTRY_DEPENDS | ( | id, | |
| dep ) |
| #define REGISTRY_DEPENDS_ | ( | id | ) |
Definition at line 47 of file registry.qh.
| #define REGISTRY_END | ( | id | ) |
| #define REGISTRY_END_ | ( | id | ) |
Definition at line 55 of file registry.qh.
| #define REGISTRY_GET | ( | id, | |
| i ) |
Definition at line 43 of file registry.qh.
Referenced by bot_cmd_select_weapon(), BUFF_NAME(), bumble_raygun_draw(), CL_Weapon_GetShotOrg(), Deathtype_Name(), DrawAmmoNades(), fixPriorityList(), Get_Notif_Ent(), SettingSource::getEntry(), SettingSource::getEntryTooltip(), GiveWeapon(), havocbot_chooseweapon(), HUD_Configure_Frame(), HUD_Crosshair_Vehicle(), HUD_Main(), HUD_Notify(), HUD_Panel_Check_Mouse_Pos(), HUD_Panel_CheckMove(), HUD_Panel_CheckResize(), HUD_Panel_ExportCfg(), HUD_Panel_Highlight(), HUD_Panel_InputEvent(), HUD_Radar(), HUD_Vehicle(), Inventory_Write(), Item_GiveTo(), Item_RespawnCountdown(), MDL_GIB_ROBO_RANDOM(), MDL_NUM(), Monster_Dead_Think(), MUTATOR_HOOKFUNCTION(), nade_boom(), nade_burn_spawn(), nade_customize(), nade_pickup(), nade_prime(), nade_spawn(), Nades_GetType(), Net_ClientCommand(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NIX_CanChooseWeapon(), NIX_GiveCurrentWeapon(), notif_arg_item_wepammo(), Obituary_SpecialDeath(), Projectile_DrawTrail(), ServerList_TypeSort_Click(), SND_BRASS_RANDOM(), SND_CASINGS_RANDOM(), SND_FLACEXP_RANDOM(), SND_GIB_SPLAT_RANDOM(), SND_GRENADE_BOUNCE_RANDOM(), SND_HAGEXP_RANDOM(), SND_NEXWHOOSH_RANDOM(), SND_RIC_RANDOM(), SND_SEEKEREXP_RANDOM(), SND_TAGEXP_RANDOM(), spritelookupblinkvalue(), spritelookupcolor(), spritelookupicon(), spritelookuptext(), StartItem(), STATIC_INIT(), StatusEffects_Write(), View_EventChase(), W_CycleWeapon(), W_DropEvent(), W_FixWeaponOrder_BuildImpulseList_cmp(), W_GetCycleWeapon(), W_GiveWeapon(), W_IsWeaponThrowable(), W_LastWeapon(), W_NameWeaponOrder_MapFunc(), W_NextWeaponOnImpulse(), W_ThrowNewWeapon(), XonoticKeyBinder_resizeNotify(), XonoticMutatorsDialog_fill(), XonoticWeaponsList_drawListBoxItem(), XonoticWeaponsList_resizeNotify(), and XonoticWeaponsList_toString().
| #define REGISTRY_HASH | ( | id | ) |
Definition at line 162 of file registry.qh.
| #define REGISTRY_MAX | ( | id | ) |
Definition at line 17 of file registry.qh.
Referenced by _GametypeFlags_FromGametype(), _WepSet_FromWeapon(), accuracy_reset(), HUD_ItemsTime(), HUD_Weapons(), Item_ItemsTime_ResetTimes(), Item_ItemsTime_ResetTimesForPlayer(), Item_ItemsTime_SetTime(), Item_ItemsTime_SetTimesForPlayer(), ReadWepSet(), STATIC_INIT(), STATIC_INIT(), and WriteWepSet().
| #define REGISTRY_NEXT enemy |
internal next pointer
Definition at line 125 of file registry.qh.
| #define REGISTRY_PUSH | ( | registry, | |
| fld, | |||
| it ) |
Definition at line 107 of file registry.qh.
| #define REGISTRY_RESERVE | ( | registry, | |
| fld, | |||
| id, | |||
| suffix ) |
Definition at line 116 of file registry.qh.
| #define REGISTRY_SORT | ( | ... | ) |
Definition at line 128 of file registry.qh.
| #define REGISTRY_SORT_1 | ( | id | ) |
Definition at line 130 of file registry.qh.
| #define REGISTRY_SORT_2 | ( | id, | |
| skip ) |
Definition at line 131 of file registry.qh.
Definition at line 62 of file registry.qh.
References LOG_FATALF.
| ERASEABLE ACCUMULATE void Registry_check | ( | string | r, |
| string | sv ) |
Definition at line 165 of file registry.qh.
References ACCUMULATE.
Referenced by NET_HANDLE().
Definition at line 20 of file registry_net.qh.
References MSG_ONE, WriteHeader, and WriteString().
| ERASEABLE ACCUMULATE void Registry_send_all | ( | ) |
Definition at line 167 of file registry.qh.
References ACCUMULATE.
Referenced by ClientInit_SendEntity().
| string registered_id |
registered item identifier
Definition at line 60 of file registry.qh.
Referenced by Animation::LOG_DEBUGF(), and Mutator_SendEntity().
| entity REGISTRY_NEXT |
Definition at line 126 of file registry.qh.