Basic house ah

This commit is contained in:
Bram verhulst
2025-05-18 12:34:25 +02:00
parent 620dafb591
commit 7d797fa207
11 changed files with 443 additions and 115 deletions

View File

@@ -2,14 +2,19 @@
#include "IExamPlugin.h"
#include "Exam_HelperStructs.h"
namespace BT{
class BehaviorTree;
}
class IBaseInterface;
class IExamInterface;
class Blackboard;
class SurvivalAgentPlugin :public IExamPlugin
class SurvivalAgentPlugin final :public IExamPlugin
{
public:
SurvivalAgentPlugin() {};
virtual ~SurvivalAgentPlugin() {};
SurvivalAgentPlugin() = default;
virtual ~SurvivalAgentPlugin() override;
void Initialize(IBaseInterface* pInterface, PluginInfo& info) override;
void DllInit() override;
@@ -34,6 +39,10 @@ private:
float m_AngSpeed = 0.f; //Demo purpose
UINT m_InventorySlot = 0;
Blackboard* CreateBlackboard();
void UpdateBlackboard(const SteeringPlugin_Output& steering);
BT::BehaviorTree* m_BehaviourTree = nullptr;
};
//ENTRY
@@ -41,7 +50,7 @@ private:
//The plugin returned by this function is also the plugin used by the host program
extern "C"
{
__declspec (dllexport) IPluginBase* Register()
inline __declspec (dllexport) IPluginBase* Register()
{
return new SurvivalAgentPlugin();
}