Planeshift
NetBase::AccessPointers Struct Reference

Struct used by MessageCracker and ToString to distribute a number of access pointers. More...

#include <netbase.h>

Public Member Functions

const char * Request (csStringID id) const
 Utility function that either request from the msgstring or from the message has depending on who that is set. More...
 
csStringID Request (const char *string) const
 Utility function that either request from the msgstring or from the message has depending on who that is set. More...
 

Public Attributes

iEngine * engine
 
csStringSet * msgstrings
 
csStringHashReversible * msgstringshash
 

Detailed Description

Struct used by MessageCracker and ToString to distribute a number of access pointers.

Collect all in one struct instead of creating multiple arguments that would be hard to maintain.

Definition at line 125 of file netbase.h.

Member Function Documentation

const char* NetBase::AccessPointers::Request ( csStringID  id) const

Utility function that either request from the msgstring or from the message has depending on who that is set.

Returns
NULL if not found, or the string if found.
csStringID NetBase::AccessPointers::Request ( const char *  string) const

Utility function that either request from the msgstring or from the message has depending on who that is set.

Returns
csInvalidStringID if not found, or the csStringID for the string if found.

Member Data Documentation

iEngine* NetBase::AccessPointers::engine

Definition at line 132 of file netbase.h.

csStringSet* NetBase::AccessPointers::msgstrings

Definition at line 130 of file netbase.h.

csStringHashReversible* NetBase::AccessPointers::msgstringshash

Definition at line 131 of file netbase.h.


The documentation for this struct was generated from the following file: