Starting to implement GOAP plan

This commit is contained in:
2026-02-06 22:14:48 +03:00
parent d4bac06d94
commit a54b042e49
2 changed files with 127 additions and 1 deletions

View File

@@ -576,7 +576,10 @@ public:
, object_vs_object_layer_filter{}
, debugDraw(false)
{
// Create a factory, this class is responsible for creating instances of classes based on their name or hash and is mainly used for deserialization of saved data.
static int instanceCount = 0;
OgreAssert(instanceCount == 0, "Bad initialisation");
instanceCount++;
// Create a factory, this class is responsible for creating instances of classes based on their name or hash and is mainly used for deserialization of saved data.
// It is not directly used in this example but still required.
JPH::Factory::sInstance = new JPH::Factory();