Merge pull request #92 from SouNourS/PR1

BugReportMessage
This commit is contained in:
Fate-JH 2017-03-01 12:59:30 -05:00 committed by GitHub
commit 06632c4e37
2 changed files with 7 additions and 5 deletions

View file

@ -34,10 +34,9 @@ object BugType extends Enumeration {
* @param version_date the date the client was compiled * @param version_date the date the client was compiled
* @param bug_type the kind of bug that took place * @param bug_type the kind of bug that took place
* @param repeatable whether the bug is repeatable * @param repeatable whether the bug is repeatable
* @param unk na; * @param location 0 when "other location", 2 when "current location"
* always 0?
* @param zone which zone the bug took place * @param zone which zone the bug took place
* @param pos the location where ther bug took place * @param pos the x y z location where the bug took place
* @param summary a short explanation of the bug * @param summary a short explanation of the bug
* @param desc a detailed explanation of the bug * @param desc a detailed explanation of the bug
*/ */
@ -46,7 +45,7 @@ final case class BugReportMessage(version_major : Long,
version_date : String, version_date : String,
bug_type : BugType.Value, bug_type : BugType.Value,
repeatable : Boolean, repeatable : Boolean,
unk : Int, location : Int,
zone : Int, zone : Int,
pos : Vector3, pos : Vector3,
summary : String, summary : String,
@ -65,7 +64,7 @@ object BugReportMessage extends Marshallable[BugReportMessage] {
("bug_type" | BugType.codec) :: ("bug_type" | BugType.codec) ::
ignore(3) :: ignore(3) ::
("repeatable" | bool) :: ("repeatable" | bool) ::
("unk" | uint4L) :: ("location" | uint4L) ::
("zone" | uint8L) :: ("zone" | uint8L) ::
("pos" | Vector3.codec_pos) :: ("pos" | Vector3.codec_pos) ::
("summary" | PacketHelpers.encodedWideStringAligned(4)) :: ("summary" | PacketHelpers.encodedWideStringAligned(4)) ::

View file

@ -335,6 +335,9 @@ class WorldSessionActor extends Actor with MDCContextAware {
case msg @ SquadDefinitionActionMessage(a, b, c, d, e, f, g, h, i) => case msg @ SquadDefinitionActionMessage(a, b, c, d, e, f, g, h, i) =>
log.info("SquadDefinitionAction: " + msg) log.info("SquadDefinitionAction: " + msg)
case msg @ BugReportMessage(version_major,version_minor,version_date,bug_type,repeatable,location,zone,pos,summary,desc) =>
log.info("BugReportMessage: " + msg)
case default => log.debug(s"Unhandled GamePacket ${pkt}") case default => log.debug(s"Unhandled GamePacket ${pkt}")
} }