add btmgr

This commit is contained in:
aozhiwei 2019-10-09 10:35:48 +08:00
parent 47aa7d49ae
commit 3d62b9c0c3
2 changed files with 70 additions and 0 deletions

43
cpp/btmgr.cc Normal file
View File

@ -0,0 +1,43 @@
#include "precompile.h"
#include "behaviac/behaviac.h"
#include "btmgr.h"
namespace f8
{
void BtMgr::Init()
{
behaviac::Workspace::GetInstance()->SetFileFormat(behaviac::Workspace::EFF_xml);
}
void BtMgr::UnInit()
{
}
void BtMgr::SetFilePath(const std::string& file_path)
{
}
bool BtMgr::BtLoad(behaviac::Agent* agent, const char* relative_path, bool force)
{
}
void BtMgr::BtSetCurrent(behaviac::Agent* agent, const char* relative_path)
{
}
void BtMgr::BtExec(behaviac::Agent* agent)
{
}
void BtMgr::BtDestory(behaviac::Agent* agent)
{
}
}

27
cpp/btmgr.h Normal file
View File

@ -0,0 +1,27 @@
#pragma once
namespace behaviac
{
class Agent;
}
namespace f8
{
class BtMgr : public a8::Singleton<BtMgr>
{
private:
BtMgr() {};
friend class a8::Singleton<BtMgr>;
public:
void Init();
void UnInit();
void SetFilePath(const std::string& file_path);
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);
};
}