initial port for Cevo game in C++ (libs)
This commit is contained in:
commit
8436242032
375 files changed
+46282
No files matched your search
+2552
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,19 @@
|
||||
// Plugin entry point: exports the "client" C-ABI function a host (or this
|
||||
// project's own cevo-evo, via AiModule) loads via dlopen/LoadLibrary to
|
||||
// drive the StdAI brain. Mirrors StdAI.lpr's `exports client;` in the
|
||||
// original Pascal project - everything else is implemented by the generic
|
||||
// AiModuleHost (see ../../include/Cevo/AiModuleHost.h) plus Cevo::AI.
|
||||
|
||||
#include "Cevo/AI.h"
|
||||
#include "Cevo/AiModuleHost.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace {
|
||||
|
||||
Cevo::AiModuleHost host([](int nation) { return std::make_unique<Cevo::AI>(nation); },
|
||||
sizeof(Cevo::TPersistentData));
|
||||
|
||||
} // namespace
|
||||
|
||||
CEVO_EXPORT_AI_CLIENT(host)
|
||||
Reference in new issue
Block a user