field names and comments

This commit is contained in:
FateJH 2017-03-15 19:43:07 -04:00
parent c648b9deff
commit 0b0507617a

View file

@ -9,19 +9,19 @@ import scodec.codecs._
/**
* Dispatched from the server to render the projectiles of one player's weapon on other players' clients.
* @param projectile_guid the projectile
* @param origin a spawning position for the projectile
* @param orient a directional heading for the projectile
* @param shot_origin a spawning position for the projectile
* @param shot_vector a directional heading for the projectile
* @param unk1 na;
* rarely not 0
* usually 0
* @param unk2 na
* @param unk3 na
* @param unk4 na;
* rarely not false
* usually false
* @param unk5 na
*/
final case class ProjectileStateMessage(projectile_guid : PlanetSideGUID,
origin : Vector3,
orient : Vector3,
shot_origin : Vector3,
shot_vector : Vector3,
unk1 : Int,
unk2 : Int,
unk3 : Int,
@ -36,8 +36,8 @@ final case class ProjectileStateMessage(projectile_guid : PlanetSideGUID,
object ProjectileStateMessage extends Marshallable[ProjectileStateMessage] {
implicit val codec : Codec[ProjectileStateMessage] = (
("projectile_guid" | PlanetSideGUID.codec) ::
("origin" | Vector3.codec_pos) ::
("orient" | Vector3.codec_float) ::
("shot_origin" | Vector3.codec_pos) ::
("shot_vector" | Vector3.codec_float) ::
("unk1" | uint8L) ::
("unk2" | uint8L) ::
("unk3" | uint8L) ::