mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-02-25 17:33:33 +00:00
Packet: CharacterCreateRequestMessage
This commit is contained in:
parent
c18ec5c6ba
commit
f6d84791e6
4 changed files with 47 additions and 9 deletions
|
|
@ -71,7 +71,7 @@ class GamePacketTest extends Specification {
|
|||
val world = worlds{0}
|
||||
|
||||
world.name mustEqual "gemini"
|
||||
world.empireNeed mustEqual EmpireNeed.NC
|
||||
world.empireNeed mustEqual PlanetSideEmpire.NC
|
||||
world.status mustEqual WorldStatus.Up
|
||||
world.serverType mustEqual ServerType.Released
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ class GamePacketTest extends Specification {
|
|||
WorldInformation("gemini", WorldStatus.Up, ServerType.Released,
|
||||
Vector(
|
||||
WorldConnectionInfo(new InetSocketAddress(InetAddress.getByName("64.37.158.69"), 30007))
|
||||
), EmpireNeed.NC
|
||||
), PlanetSideEmpire.NC
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
@ -103,8 +103,8 @@ class GamePacketTest extends Specification {
|
|||
"encode and decode multiple worlds" in {
|
||||
val msg = VNLWorldStatusMessage("Welcome to PlanetSide! ",
|
||||
Vector(
|
||||
WorldInformation("PSForever1", WorldStatus.Up, ServerType.Released, Vector(), EmpireNeed.NC),
|
||||
WorldInformation("PSForever2", WorldStatus.Down, ServerType.Beta, Vector(), EmpireNeed.TR)
|
||||
WorldInformation("PSForever1", WorldStatus.Up, ServerType.Released, Vector(), PlanetSideEmpire.NC),
|
||||
WorldInformation("PSForever2", WorldStatus.Down, ServerType.Beta, Vector(), PlanetSideEmpire.TR)
|
||||
))
|
||||
|
||||
val pkt = PacketCoding.EncodePacket(msg).require.toByteVector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue