add btmgr
This commit is contained in:
parent
47aa7d49ae
commit
3d62b9c0c3
43
cpp/btmgr.cc
Normal file
43
cpp/btmgr.cc
Normal 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
27
cpp/btmgr.h
Normal 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);
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user