Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Class to test a single component. More...
#include <ComponentTest.h>
Public Member Functions | |
ComponentTestHelper (ScriptContext &scriptContext) | |
const ScriptInterface & | GetScriptInterface () |
CSimContext & | GetSimContext () |
template<typename T > | |
T * | Add (EComponentTypeId cid, const std::string &xml, entity_id_t ent=10) |
Call this once to initialise the test helper with a component. More... | |
void | AddMock (entity_id_t ent, EInterfaceId iid, IComponent &component) |
void | HandleMessage (IComponent *cmp, const CMessage &msg, bool global) |
void | Roundtrip (bool verbose=false) |
Checks that the object roundtrips through its serialize/deserialize functions correctly. More... | |
Private Attributes | |
CSimContext | m_Context |
CComponentManager | m_ComponentManager |
CParamNode | m_Param |
IComponent * | m_Cmp |
EComponentTypeId | m_Cid |
bool | m_isSystemEntityInit = false |
Class to test a single component.
|
inline |
|
inline |
Call this once to initialise the test helper with a component.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Checks that the object roundtrips through its serialize/deserialize functions correctly.
Computes the debug output, hash, and binary serialization; then deserializes into a new system and checks the serialization outputs are unchanged.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |