feat: add pullInEntity

This commit is contained in:
子沐呀
2024-05-31 20:06:39 +08:00
Unverified
parent 0872c064bb
commit a13760c1c2
+5
View File
@@ -1,4 +1,6 @@
#include "Global.h"
#include "mc/world/item/ItemStackBase.h"
#include "mc/world/item/enchanting/Enchant.h"
#include <regex>
bool isInteger(const std::string& str) {
@@ -668,4 +670,7 @@ void Export_Compatibility_API() {
RemoteCall::exportAs("GMLIB_API", "playerAttack", [](Player* player, Actor* entity) -> bool {
return player->attack(*entity, ActorDamageCause::EntityAttack);
});
RemoteCall::exportAs("GMLIB_API", "playerPullInEntity", [](Player* player, Actor* entity) -> bool {
return player->pullInEntity(*entity);
});
}