Pyrogenesis  trunk
Classes | Macros
ScriptComponent.h File Reference
#include "scriptinterface/FunctionWrapper.h"
#include "simulation2/system/CmpPtr.h"
#include "simulation2/system/Components.h"
#include "simulation2/system/IComponent.h"
#include "simulation2/system/ParamNode.h"
#include "simulation2/system/SimContext.h"
#include "simulation2/serialization/ISerializer.h"
#include "simulation2/serialization/IDeserializer.h"
#include "ps/CLogger.h"
Include dependency graph for ScriptComponent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CComponentTypeScript
 

Macros

#define REGISTER_COMPONENT_SCRIPT_WRAPPER(cname)
 
#define DEFAULT_SCRIPT_WRAPPER(cname)
 

Macro Definition Documentation

◆ DEFAULT_SCRIPT_WRAPPER

#define DEFAULT_SCRIPT_WRAPPER (   cname)

◆ REGISTER_COMPONENT_SCRIPT_WRAPPER

#define REGISTER_COMPONENT_SCRIPT_WRAPPER (   cname)
Value:
void RegisterComponentType_##cname(CComponentManager& mgr) \
{ \
IComponent::RegisterComponentTypeScriptWrapper(mgr, CCmp##cname::GetInterfaceId(), CID_##cname, CCmp##cname::Allocate, CCmp##cname::Deallocate, #cname, CCmp##cname::GetSchema()); \
CCmp##cname::ClassInit(mgr); \
}
Definition: ComponentManager.h:39
std::shared_ptr< u8 > Allocate(size_t size)
Definition: shared_ptr.cpp:55
static void RegisterComponentTypeScriptWrapper(CComponentManager &mgr, EInterfaceId iid, EComponentTypeId cid, AllocFunc alloc, DeallocFunc dealloc, const char *name, const std::string &schema)
Definition: IComponent.cpp:41