mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-25 22:05:22 +00:00
changes to BuildingInfo, TimeOfDay, ZonePopulationUpdate, PlayerStateUpstream, and AvatarJump; TimeOfDay still makes no sense
This commit is contained in:
parent
dfe449354a
commit
3a798264b2
7 changed files with 42 additions and 50 deletions
|
|
@ -474,20 +474,16 @@ class GamePacketTest extends Specification {
|
|||
|
||||
"decode" in {
|
||||
PacketCoding.DecodePacket(string).require match {
|
||||
case TimeOfDayMessage(unk1, time, unk2, unk3, unk4, unk5) =>
|
||||
unk1 mustEqual 0
|
||||
time mustEqual 4653056
|
||||
unk2 mustEqual 0
|
||||
unk3 mustEqual 0
|
||||
unk4 mustEqual 32
|
||||
unk5 mustEqual 65
|
||||
case TimeOfDayMessage(time, unk) =>
|
||||
time mustEqual 1191182336
|
||||
unk mustEqual 1092616192
|
||||
case default =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = TimeOfDayMessage(0, 4653056, 0, 0, 32, 65)
|
||||
val msg = TimeOfDayMessage(1191182336)
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue