fix build

This commit is contained in:
ds 2020-11-05 16:43:30 +03:00
commit 6921474f0c

View file

@ -8,7 +8,7 @@
#include <yapb.h>
// module interface implementation
class YaPBModule : public IYaPBModule, public Singleton <YaPBModule> {
class YaPBModule : public IYaPBModule {
private:
Bot *getBot (int index) {
if (index < 1) {
@ -65,7 +65,7 @@ public:
}
// force bot to go to the selected node
virtual void setBotGoal (int entity, int node) {
virtual void setBotGoal (int entity, int node) override {
if (!graph.exists (node)) {
return;
}
@ -77,7 +77,7 @@ public:
}
// force bot to go to selected origin
virtual void setBotGoalOrigin (int entity, float *origin) {
virtual void setBotGoalOrigin (int entity, float *origin) override {
auto bot = getBot (entity);
if (bot) {
@ -86,12 +86,12 @@ public:
}
};
CR_EXPOSE_GLOBAL_SINGLETON (YaPBModule, botModule);
// export all the stuff, maybe add versioned interface ?
CR_EXPORT IYaPBModule *GetBotAPI (int version) {
if (version != kYaPBModuleVersion) {
return nullptr;
}
static YaPBModule botModule;
return &botModule;
}