Skip to content

Commit

Permalink
adapt: adapt GMLIB 0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeBryant114514 committed Feb 12, 2024
1 parent a4d5686 commit df18489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/LegacyServerApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit df18489

Please sign in to comment.