mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-25 15:19:13 +00:00
Code Style Improvements (#1016)
* code style improvements for SessionData file * refactored and simplified methods; added GenericAction case enum for smoother GenericActionMessage behavior; fixed timers for MAX unit * 10 -> 11; suffixes for actions that are 'received' from the client
This commit is contained in:
parent
335c4b2099
commit
40cf783f18
18 changed files with 1792 additions and 1980 deletions
|
|
@ -12,14 +12,14 @@ class GenericActionMessageTest extends Specification {
|
|||
"decode" in {
|
||||
PacketCoding.decodePacket(string).require match {
|
||||
case GenericActionMessage(action) =>
|
||||
action mustEqual 37
|
||||
action mustEqual GenericAction.NotLookingForSquad_RCV
|
||||
case _ =>
|
||||
ko
|
||||
}
|
||||
}
|
||||
|
||||
"encode" in {
|
||||
val msg = GenericActionMessage(37)
|
||||
val msg = GenericActionMessage(GenericAction.NotLookingForSquad_RCV)
|
||||
val pkt = PacketCoding.encodePacket(msg).require.toByteVector
|
||||
|
||||
pkt mustEqual string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue