1#include "ExtensionRegistry.h"
2#include "EntityDefinitions.h"
5#include "Services/Services.h"
7#include "PhysicsManager.h"
9#include "RigidBodySystem.h"
10#include "TriggerSystem.h"
11#include "CollisionSystem.h"
12#include "ConstraintSystem.h"
13#include "GhostSystem.h"
25 CollisionComponent::registerType();
26 PlaneCollisionComponent::registerType();
27 SphereCollisionComponent::registerType();
28 BoxCollisionComponent::registerType();
29 CapsuleCollisionComponent::registerType();
30 CylinderCollisionComponent::registerType();
31 EmptyCollisionComponent::registerType();
32 MeshCollisionComponent::registerType();
38 ConstraintComponent::registerType();
39 FixedConstraintComponent::registerType();
40 HingeConstraintComponent::registerType();
41 SpringConstraintComponent::registerType();
42 GenericConstraintComponent::registerType();
44 Reflection::TypeDatabase::createType<SizeT>();
45 CollisionDetail::registerType();
46 Reflection::TypeDatabase::createType<PhysicsManager>();
69 manager = context->services->registerService<
PhysicsManager>(context);
77 } physicsExtensionInstance;
A Context instance contains all the services, systems and runtime components needed to use Cogs.
static void add(Extension *extension, StringView version)
Adds the given extension to the registry, ensuring the initialization methods are called at appropria...
static void registerType()
Register the type in the type system.
static void registerType()
Register the type in the type system.
static void registerType()
Register the type in the type system.
Contains all Cogs related functionality.
Defines an extension to Cogs.Core and provides methods to override in order to initialize extension c...
bool initializeStatic() override final
Initialize extension statically.
const char * getExtensionKey() const final
Get the extensions unique key, used to check for extension presence and retrieve extension specific d...
bool initialize(Context *context) override final
Initialize extension for the given context.
@ PreTransform
Run before transformations are updated.