Nuclide
Software Development Kit for id Tech
|
#include <NSWeapon.h>
Public Member Functions | |
void | NSWeapon (void) |
virtual void | Save (float) |
Handles saving a copy of this entity to a given filehandle. More... | |
virtual void | Restore (string, string) |
Similar to ::SpawnKey but for save-game fields. More... | |
virtual void | Draw (void) |
Overridable: Called when we switch to this weapon. More... | |
virtual void | Holster (void) |
Overridable: Called when we are about to switch to another weapon. More... | |
virtual void | PrimaryAttack (void) |
Overridable: On +attack execution. More... | |
virtual void | SecondaryAttack (void) |
Overridable: On +attack2 execution. More... | |
virtual void | Reload (void) |
Overridlable: On +reload execution. More... | |
virtual void | Release (void) |
Overridable: When no buttons are held. More... | |
Overridable: Called when we are about to switch to another weapon.
Similar to ::SpawnKey
but for save-game fields.
Whatever you write into file handles within your ::Save()
method needs to be read back in here.
Reimplemented from NSItem.
Handles saving a copy of this entity to a given filehandle.
Within you want to use the ::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from NSItem.