Facebook Twitter YouTube

class ForceRegistration

Defined in:  TSForces.h
The ForceRegistration class manages internal registration information for a custom force type.
Definition

class ForceRegistration : public Registration<Force, ForceRegistration>

Member Functions
ForceRegistration::GetForceType Returns the registered force type.
ForceRegistration::GetForceName Returns the human-readable force name.
Constructor

ForceRegistration(ForceType type, const char *name);

Parameters
type The force type.
name The force name.
Description
The ForceRegistration class is abstract and serves as the common base class for the template class ForceReg. A custom force is registered with the engine by instantiating an object of type ForceReg<classType>, where classType is the type of the force subclass being registered.
Base Classes
Registration<Force, ForceRegistration> A force registration is a specific type of registration object.
See Also

ForceReg

Force