26 lines
556 B
C++
26 lines
556 B
C++
#pragma once
|
|
|
|
namespace behaviac
|
|
{
|
|
class Agent;
|
|
}
|
|
|
|
namespace f8
|
|
{
|
|
class BtMgr : public a8::Singleton<BtMgr>
|
|
{
|
|
private:
|
|
BtMgr() {};
|
|
friend class a8::Singleton<BtMgr>;
|
|
|
|
public:
|
|
void Init(const std::string& file_path);
|
|
void UnInit();
|
|
|
|
bool BtLoad(behaviac::Agent* agent, const char* relative_path, bool force = false);
|
|
void BtSetCurrent(behaviac::Agent* agent, const char* relative_path);
|
|
void BtExec(behaviac::Agent* agent);
|
|
void BtDestory(behaviac::Agent* agent);
|
|
};
|
|
}
|