1
This commit is contained in:
parent
b5d015110f
commit
d116fc41df
@ -1,11 +1,47 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include <a8/udplog.h>
|
||||
|
||||
#include "mapinstance.h"
|
||||
#include "metamgr.h"
|
||||
#include "navmeshhelper.h"
|
||||
#include "collider.h"
|
||||
#include "entity.h"
|
||||
|
||||
void BuildContext::doResetLog()
|
||||
{
|
||||
a8::UdpLog::Instance()->Debug("doResetLog", {});
|
||||
}
|
||||
|
||||
void BuildContext::doLog(const rcLogCategory category, const char* msg, const int len)
|
||||
{
|
||||
a8::UdpLog::Instance()->Debug("doLog category:%d msg:%s",
|
||||
{
|
||||
category,
|
||||
msg
|
||||
});
|
||||
}
|
||||
|
||||
void BuildContext::doResetTimers()
|
||||
{
|
||||
a8::UdpLog::Instance()->Debug("doResetTimers", {});
|
||||
}
|
||||
|
||||
void BuildContext::doStartTimer(const rcTimerLabel label)
|
||||
{
|
||||
a8::UdpLog::Instance()->Debug("doStartTimer lable:%d", {label});
|
||||
}
|
||||
|
||||
void BuildContext::doStopTimer(const rcTimerLabel label)
|
||||
{
|
||||
a8::UdpLog::Instance()->Debug("doStopTimer lable:%d", {label});
|
||||
}
|
||||
|
||||
int BuildContext::doGetAccumulatedTime(const rcTimerLabel label) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void NavMeshHelper::OutputObjFile(MapInstance* map_instance)
|
||||
{
|
||||
std::vector<a8::Vec2> vertexs;
|
||||
|
@ -174,12 +174,12 @@ struct MeshProcess : public dtTileCacheMeshProcess
|
||||
class BuildContext : public rcContext
|
||||
{
|
||||
protected:
|
||||
virtual void doResetLog() {}
|
||||
virtual void doLog(const rcLogCategory category, const char* msg, const int len) {}
|
||||
virtual void doResetTimers() {}
|
||||
virtual void doStartTimer(const rcTimerLabel label) {}
|
||||
virtual void doStopTimer(const rcTimerLabel label) {}
|
||||
virtual int doGetAccumulatedTime(const rcTimerLabel label) const { return 0;}
|
||||
virtual void doResetLog() override;
|
||||
virtual void doLog(const rcLogCategory category, const char* msg, const int len) override;
|
||||
virtual void doResetTimers() override;
|
||||
virtual void doStartTimer(const rcTimerLabel label) override;
|
||||
virtual void doStopTimer(const rcTimerLabel label) override;
|
||||
virtual int doGetAccumulatedTime(const rcTimerLabel label) const override;
|
||||
};
|
||||
|
||||
class MapInstance;
|
||||
|
Loading…
x
Reference in New Issue
Block a user