feat: add pullInEntity
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
#include "Global.h"
|
#include "Global.h"
|
||||||
|
#include "mc/world/item/ItemStackBase.h"
|
||||||
|
#include "mc/world/item/enchanting/Enchant.h"
|
||||||
#include <regex>
|
#include <regex>
|
||||||
|
|
||||||
bool isInteger(const std::string& str) {
|
bool isInteger(const std::string& str) {
|
||||||
@@ -668,4 +670,7 @@ void Export_Compatibility_API() {
|
|||||||
RemoteCall::exportAs("GMLIB_API", "playerAttack", [](Player* player, Actor* entity) -> bool {
|
RemoteCall::exportAs("GMLIB_API", "playerAttack", [](Player* player, Actor* entity) -> bool {
|
||||||
return player->attack(*entity, ActorDamageCause::EntityAttack);
|
return player->attack(*entity, ActorDamageCause::EntityAttack);
|
||||||
});
|
});
|
||||||
|
RemoteCall::exportAs("GMLIB_API", "playerPullInEntity", [](Player* player, Actor* entity) -> bool {
|
||||||
|
return player->pullInEntity(*entity);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user