From 78f831cef6d956525c828afe728db19f8fecb518 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:00:02 +0800 Subject: [PATCH] feat: more api --- src/CompatibilityApi.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index a572e22..6298871 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -13,4 +13,14 @@ void Export_Compatibility_API() { RemoteCall::exportAs("GMLIB_API", "getAllPlayerUuids", []() -> std::vector { return GMLIB_Player::getAllUuids(); }); + RemoteCall::exportAs("GMLIB_API", "getAllExperiments", []() -> std::vector { + return {6, 7, 8, 9, 10, 13, 16, 17, 18}; + }); + RemoteCall::exportAs("GMLIB_API", "getExperimentTranslatedName", [](int id) -> std::string { + auto map = GMLIB_Level::getAllExperimentsTranslateKeys(); + if (map.count(id)) { + return map[id]; + } + return ""; + }); } \ No newline at end of file