From df18489aca8034bc6614dd0210ce5254960c7147 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:27:57 +0800 Subject: [PATCH] adapt: adapt GMLIB 0.7.3 --- SDK-GMLIB | 2 +- src/LegacyServerApi.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SDK-GMLIB b/SDK-GMLIB index 1c2918e..fe6194d 160000 --- a/SDK-GMLIB +++ b/SDK-GMLIB @@ -1 +1 @@ -Subproject commit 1c2918e15dc5ed06199f5695a89f030191f5d703 +Subproject commit fe6194d24e0bf104c049688d10c0e71ad2a124e0 diff --git a/src/LegacyServerApi.cpp b/src/LegacyServerApi.cpp index 0a7a385..a33aafe 100644 --- a/src/LegacyServerApi.cpp +++ b/src/LegacyServerApi.cpp @@ -8,11 +8,11 @@ void Export_Legacy_GMLib_ServerAPI() { GMLIB_Level::forceEnableAbilityCommand(); }); RemoteCall::exportAs("GMLib_ServerAPI", "addFloatingTextPacket", [](std::string text, std::pair pos, int dimid) -> int { - auto ft = new FloatingText(text, pos.first, pos.second); - return ft->mRuntimeId; + auto ft = new GMLIB::Server::FloatingText(text, pos.first, pos.second); + return ft->getRuntimeID(); }); RemoteCall::exportAs("GMLib_ServerAPI", "deleteFloatingTextPacket", [](int id) -> void { - FloatingText::deleteFloatingText(id); + GMLIB::Server::FloatingText::deleteFloatingText(id); }); RemoteCall::exportAs("GMLib_ServerAPI", "setEnableAchievement", []() -> void { GMLIB_Level::setForceAchievementsEnabled();