mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat(LuaEngine/Packet): Add support ReadPackedGUID (#271)
This commit is contained in:
@@ -1191,6 +1191,7 @@ ElunaRegister<WorldPacket> PacketMethods[] =
|
||||
{ "ReadLong", &LuaPacket::ReadLong },
|
||||
{ "ReadULong", &LuaPacket::ReadULong },
|
||||
{ "ReadGUID", &LuaPacket::ReadGUID },
|
||||
{ "ReadPackedGUID", &LuaPacket::ReadPackedGUID },
|
||||
{ "ReadString", &LuaPacket::ReadString },
|
||||
{ "ReadFloat", &LuaPacket::ReadFloat },
|
||||
{ "ReadDouble", &LuaPacket::ReadDouble },
|
||||
|
||||
@@ -173,6 +173,19 @@ namespace LuaPacket
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads and returns an unsigned 64-bit integer value from the [WorldPacket].
|
||||
*
|
||||
* @return uint64 value : value returned as string
|
||||
*/
|
||||
int ReadPackedGUID(lua_State* L, WorldPacket* packet)
|
||||
{
|
||||
uint64 guid;
|
||||
packet->readPackGUID(guid);
|
||||
Eluna::Push(L, guid);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads and returns a string value from the [WorldPacket].
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user