Planeshift
|
A hash map class that stores a name->ID of sockets. More...
#include <slots.h>
Classes | |
struct | PrimaryToSecondary |
Public Member Functions | |
void | AddSecondaryName (const char *primary, const char *secondary) |
int | GetID (const csString &name) |
Get the enum ID from a string name. | |
const char * | GetName (int id) |
Get the name from an enum. | |
const char * | GetSecondaryName (int id) |
Get the secondary, non exact name. | |
SlotNameHash () |
A hash map class that stores a name->ID of sockets.
This way we can easily work with numbers and then convert to string if we need to. This is shared class across both the client and server since both may need this.
SlotNameHash::SlotNameHash | ( | ) |
void SlotNameHash::AddSecondaryName | ( | const char * | primary, |
const char * | secondary | ||
) |
int SlotNameHash::GetID | ( | const csString & | name | ) |
Get the enum ID from a string name.
const char* SlotNameHash::GetName | ( | int | id | ) |
Get the name from an enum.
const char* SlotNameHash::GetSecondaryName | ( | int | id | ) |
Get the secondary, non exact name.