Initial commit
This commit is contained in:
48
project/SurvivalAgentPlugin.h
Normal file
48
project/SurvivalAgentPlugin.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
#include "IExamPlugin.h"
|
||||
#include "Exam_HelperStructs.h"
|
||||
|
||||
class IBaseInterface;
|
||||
class IExamInterface;
|
||||
|
||||
class SurvivalAgentPlugin :public IExamPlugin
|
||||
{
|
||||
public:
|
||||
SurvivalAgentPlugin() {};
|
||||
virtual ~SurvivalAgentPlugin() {};
|
||||
|
||||
void Initialize(IBaseInterface* pInterface, PluginInfo& info) override;
|
||||
void DllInit() override;
|
||||
void DllShutdown() override;
|
||||
|
||||
void InitGameDebugParams(GameDebugParams& params) override;
|
||||
void Update_Debug(float dt) override;
|
||||
|
||||
SteeringPlugin_Output UpdateSteering(float dt) override;
|
||||
void Render(float dt) const override;
|
||||
|
||||
private:
|
||||
//Interface, used to request data from/perform actions with the AI Framework
|
||||
IExamInterface* m_pInterface = nullptr;
|
||||
|
||||
Elite::Vector2 m_Target = {};
|
||||
bool m_CanRun = false; //Demo purpose
|
||||
bool m_GrabItem = false; //Demo purpose
|
||||
bool m_UseItem = false; //Demo purpose
|
||||
bool m_RemoveItem = false; //Demo purpose
|
||||
bool m_DestroyItemsInFOV = false;
|
||||
float m_AngSpeed = 0.f; //Demo purpose
|
||||
|
||||
UINT m_InventorySlot = 0;
|
||||
};
|
||||
|
||||
//ENTRY
|
||||
//This is the first function that is called by the host program
|
||||
//The plugin returned by this function is also the plugin used by the host program
|
||||
extern "C"
|
||||
{
|
||||
__declspec (dllexport) IPluginBase* Register()
|
||||
{
|
||||
return new SurvivalAgentPlugin();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user