![]() |
Nuclide
Software Development Kit for id Technology (BETA)
|
This class delegates active MapC logic.
The ncMapDelegate class is for any set of active level specific logic. It can be accessed in QuakeC via the global g_grMap
from the server-side.
Upon server init, the game will attempt to find a MapC progs file alongside the BSP or MAP that is being played on.
If you load map foobar
in the console, and it'll find the map at <gamedir>/maps/foobar.bsp
, then our server-game will look for a MapC progs over at <gamedir>/maps/foobar.dat
.
Similarily to RuleC, that progs can be implemented with as many binds to the ncMapDelegate class as you like. The only requirement is you include the header found under src/server/api.h
.
To be written.
Left = class method, right = name of the callback function for you to implement in progs.
To be written.**
The underlying return values and parameters are inherited from its class counter-part.
Public Member Functions | |
void | ncMapDelegate (void) |
virtual void | Input (entity, string, string) |
Called when we are being prompted by another object/function with an input message. More... | |
virtual void | Precache (void) |
Overridable: Called from initents(). More... | |
virtual void | FrameStart (void) |
Overridable: Called every server frame. More... | |
virtual void | PlayerConnect (ncPlayer) |
Overridable: Called when a ncPlayer joins the server. More... | |
virtual void | PlayerDisconnect (ncPlayer) |
Overridable: Called when a ncPlayer leaves the server. More... | |
virtual void | PlayerSpawn (ncPlayer) |
Overridable: Called when a ncPlayer spawns, called sometime after joining. More... | |
virtual void | PlayerDeath (ncPlayer, ncEntity, ncEntity, string) |
Overridable: Called when a ncPlayer dies in the game. More... | |
virtual void | PlayerPain (ncPlayer, ncActor, ncDict) |
Overridable: Called when a ncPlayer feels pain. More... | |
virtual void | NPCDeath (ncActor, ncEntity, ncEntity) |
Overridable:: Called when an NPC gets killed. More... | |
nonvirtual void | LinkProgs (void) |
nonvirtual ncMapDelegate | ActiveInstance (void) |
void ncMapDelegate::ncMapDelegate | ( | void | ) |
ncMapDelegate ncMapDelegate::ActiveInstance | ( | void | ) |
|
virtual |
Overridable: Called every server frame.
|
virtual |
Called when we are being prompted by another object/function with an input message.
Reimplemented from ncIO.
void ncMapDelegate::LinkProgs | ( | void | ) |
Overridable:: Called when an NPC gets killed.
|
virtual |
Overridable: Called when a ncPlayer joins the server.
|
virtual |
Overridable: Called when a ncPlayer dies in the game.
|
virtual |
Overridable: Called when a ncPlayer leaves the server.
Overridable: Called when a ncPlayer feels pain.
|
virtual |
Overridable: Called when a ncPlayer spawns, called sometime after joining.
|
virtual |
Overridable: Called from initents().