Sirikata
|
A SpaceModule is a generic service for a space. More...
#include <SpaceModule.hpp>
Public Member Functions | |
SpaceModule (SpaceContext *ctx) | |
virtual | ~SpaceModule () |
Protected Attributes | |
SpaceContext * | mContext |
A SpaceModule is a generic service for a space.
It allows you to extend the basic fixed functionality of the space by hooking into it's components via the SpaceContext. Any sort of functionality could be implemented here, e.g. a service for custom global settings that are relayed to objects or object hosts, an HTTP control interface, or a service to track per-user state such as inventory or game statistics.
Access to the space server is provided through the SpaceModule, so no additional interface is required beyond implementing Service, which tells the SpaceModule when to start and stop its services.
Sirikata::SpaceModule::SpaceModule | ( | SpaceContext * | ctx | ) | [inline] |
Sirikata::SpaceModule::~SpaceModule | ( | ) | [virtual] |
SpaceContext* Sirikata::SpaceModule::mContext [protected] |
Referenced by Sirikata::Environment::start(), and Sirikata::Environment::stop().