This commit is contained in:
aozhiwei 2022-12-28 20:10:02 +08:00
parent 773c8daf77
commit d130f99cfd
6 changed files with 23 additions and 6 deletions

View File

@ -62,9 +62,9 @@ aux_source_directory(../../third_party/recastnavigation/DetourTileCache/Source
SRC_LIST
)
aux_source_directory(behaviac_generated/types/internal
SRC_LIST
)
#aux_source_directory(behaviac_generated/types/internal
# SRC_LIST
#)
aux_source_directory(mtb
SRC_LIST
@ -74,6 +74,10 @@ aux_source_directory(mt
SRC_LIST
)
aux_source_directory(buff
SRC_LIST
)
execute_process(
COMMAND touch -a cs_proto.pb.h
COMMAND touch -a cs_proto.pb.cc

View File

@ -17,21 +17,27 @@ Android::Android():Human()
#if 0
++PerfMonitor::Instance()->entity_num[ET_Android];
#endif
#if 0
agent_ = behaviac::Agent::Create<AndroidAgent>();
if (!agent_) {
abort();
}
#endif
#if 0
agent_->SetOwner(this);
f8::BtMgr::Instance()->BtLoad(agent_, "android_pvp");
f8::BtMgr::Instance()->BtSetCurrent(agent_, "android_pvp");
#endif
}
Android::~Android()
{
#if 0
if (agent_) {
f8::BtMgr::Instance()->BtDestory(agent_);
agent_ = nullptr;
}
#endif
#if 0
--PerfMonitor::Instance()->entity_num[ET_Android];
#endif
@ -107,7 +113,9 @@ void Android::InternalUpdate(int delta_time)
#endif
Global::Instance()->verify_set_pos = 0;
}
#if 0
agent_->Exec();
#endif
}
void Android::GiveEquip()

View File

@ -1,5 +1,5 @@
#include "precompile.h"
#if 0
#include "android_agent.h"
#include "android.h"
#include "room.h"
@ -306,3 +306,4 @@ behaviac::EBTStatus AndroidAgent::DoPursuit()
"CoPursuit"
);
}
#endif

View File

@ -1,7 +1,7 @@
#pragma once
#include "base_agent.h"
#if 0
class Android;
class AndroidAgent : public BaseAgent
{
@ -23,3 +23,4 @@ public:
private:
Android* owner_ = nullptr;
};
#endif

View File

@ -1,5 +1,5 @@
#include "precompile.h"
#if 0
#include "base_agent.h"
#include "room.h"
#include "creature.h"
@ -173,3 +173,4 @@ behaviac::EBTStatus BaseAgent::CoAttackTarget(int target_id)
"CoAttackTarget"
);
}
#endif

View File

@ -1,5 +1,6 @@
#pragma once
#if 0
#include "behaviac/behaviac.h"
#include "behaviac_customized_types.h"
@ -43,3 +44,4 @@ protected:
private:
Creature* owner_ = nullptr;
};
#endif