initial port for Cevo game in C++ (libs)

This commit is contained in:
Geoffray Levasseur committed 2026-10-22 17:20:45 +02:00
commit 8436242032
375 files changed
+46282

No files matched your search

+19
View File
@@ -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)