diff --git a/cpp/btmgr.cc b/cpp/btmgr.cc new file mode 100644 index 0000000..83da4cc --- /dev/null +++ b/cpp/btmgr.cc @@ -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) + { + + } + +} diff --git a/cpp/btmgr.h b/cpp/btmgr.h new file mode 100644 index 0000000..68c3e86 --- /dev/null +++ b/cpp/btmgr.h @@ -0,0 +1,27 @@ +#pragma once + +namespace behaviac +{ + class Agent; +} + +namespace f8 +{ + class BtMgr : public a8::Singleton + { + private: + BtMgr() {}; + friend class a8::Singleton; + + 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); + }; +}