adapt: adapt GMLIB 0.7.3

This commit is contained in:
Tsubasa6848
2024-02-12 15:27:57 +08:00
Unverified
parent a4d568620d
commit df18489aca
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -8,11 +8,11 @@ void Export_Legacy_GMLib_ServerAPI() {
GMLIB_Level::forceEnableAbilityCommand();
});
RemoteCall::exportAs("GMLib_ServerAPI", "addFloatingTextPacket", [](std::string text, std::pair<Vec3, int> 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();