Add files via upload

This commit is contained in:
ethxn 2026-03-19 19:31:00 +08:00 committed by GitHub
parent 78aafe6f94
commit 914987dc07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -179,6 +179,12 @@ shared_ptr<ItemEntity> MultiplayerLocalPlayer::drop()
return nullptr;
}
shared_ptr<ItemEntity> MultiplayerLocalPlayer::dropall()
{
connection->send(std::make_shared<PlayerActionPacket>(PlayerActionPacket::DROP_ALL_ITEMS, 0, 0, 0, 0));
return nullptr;
}
void MultiplayerLocalPlayer::reallyDrop(shared_ptr<ItemEntity> itemEntity)
{
}

View file

@ -36,6 +36,9 @@ public:
using Player::drop;
virtual shared_ptr<ItemEntity> drop();
using Player::dropall;
virtual shared_ptr<ItemEntity> dropall();
protected:
virtual void reallyDrop(shared_ptr<ItemEntity> itemEntity);
public: