mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-21 07:33:34 +00:00
added DetailedLockerContainerData Codec; modified PacketConverter for LockerContainer; modified tests (2)
This commit is contained in:
parent
110dcdf675
commit
a73e2f129c
3 changed files with 21 additions and 2 deletions
|
|
@ -162,6 +162,24 @@ class ConverterTest extends Specification {
|
|||
}
|
||||
}
|
||||
|
||||
"LockerContainer" should {
|
||||
"convert to packet" in {
|
||||
val obj = LockerContainer()
|
||||
obj.Definition.Packet.DetailedConstructorData(obj) match {
|
||||
case Success(pkt) =>
|
||||
pkt mustEqual DetailedLockerContainerData(8)
|
||||
case _ =>
|
||||
ko
|
||||
}
|
||||
obj.Definition.Packet.ConstructorData(obj) match {
|
||||
case Success(pkt) =>
|
||||
pkt mustEqual LockerContainerData(InventoryData(List.empty))
|
||||
case _ =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"Vehicle" should {
|
||||
"convert to packet" in {
|
||||
val hellfire_ammo = AmmoBoxDefinition(Ammo.hellfire_ammo.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue