Continued working on GOAP action executor

This commit is contained in:
2026-02-07 17:03:12 +03:00
parent 685b15933a
commit d139e77969
5 changed files with 269 additions and 106 deletions

View File

@@ -18,6 +18,8 @@
#include "GUIModuleCommon.h"
#include "AppModule.h"
#include "GUIModule.h"
#include "PhysicsModule.h"
#include "physics.h"
#include "sound.h"
class App;
class SkyRenderer : public Ogre::SceneManager::Listener {
@@ -626,10 +628,13 @@ end:
void setupInput()
{
}
JoltPhysicsWrapper *mJolt;
void createContent()
{
int i;
sky = new SkyBoxRenderer(getSceneManager());
mJolt = new JoltPhysicsWrapper(mScnMgr, mCameraNode);
sky = new SkyBoxRenderer(getSceneManager());
bool drawFirst = true;
uint8_t renderQueue = drawFirst ?
Ogre::RENDER_QUEUE_SKIES_EARLY :
@@ -651,6 +656,12 @@ end:
ECS::setupExteriorScene(mScnMgr,
/*mDynWorld.get(), */ mCameraNode,
mCamera, getRenderWindow());
ECS::get().import <ECS::PhysicsModule>();
ECS::Physics &ph = ECS::get().ensure<ECS::Physics>();
ph.physics = mJolt;
ECS::modified<ECS::Physics>();
ECS::get()
.observer<ECS::App>("UpdateInputListener")
.event(flecs::OnSet)