mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-21 06:01:29 +00:00
Add OP_MobHealth encode.
This commit is contained in:
parent
b761f1cdf9
commit
0da381c272
@ -3076,6 +3076,16 @@ namespace Laurion
|
|||||||
FINISH_ENCODE();
|
FINISH_ENCODE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ENCODE(OP_MobHealth) {
|
||||||
|
ENCODE_LENGTH_EXACT(SpawnHPUpdate_Struct2);
|
||||||
|
SETUP_DIRECT_ENCODE(SpawnHPUpdate_Struct2, structs::MobHealth_Struct);
|
||||||
|
|
||||||
|
OUT(spawn_id);
|
||||||
|
OUT(hp);
|
||||||
|
|
||||||
|
FINISH_ENCODE();
|
||||||
|
}
|
||||||
|
|
||||||
// DECODE methods
|
// DECODE methods
|
||||||
|
|
||||||
DECODE(OP_EnterWorld)
|
DECODE(OP_EnterWorld)
|
||||||
|
|||||||
@ -40,6 +40,7 @@ E(OP_BuffCreate)
|
|||||||
E(OP_Buff)
|
E(OP_Buff)
|
||||||
E(OP_ManaChange)
|
E(OP_ManaChange)
|
||||||
E(OP_Action)
|
E(OP_Action)
|
||||||
|
E(OP_MobHealth)
|
||||||
//list of packets we need to decode on the way in:
|
//list of packets we need to decode on the way in:
|
||||||
D(OP_EnterWorld)
|
D(OP_EnterWorld)
|
||||||
D(OP_ZoneEntry)
|
D(OP_ZoneEntry)
|
||||||
|
|||||||
@ -733,6 +733,12 @@ namespace Laurion {
|
|||||||
//live however has a lot more info here depending on packet type
|
//live however has a lot more info here depending on packet type
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct MobHealth_Struct
|
||||||
|
{
|
||||||
|
/*01*/ int16 spawn_id;
|
||||||
|
/*00*/ uint32 hp;
|
||||||
|
};
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
}; //end namespace structs
|
}; //end namespace structs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user