in the middle of testing

This commit is contained in:
FateJH 2018-06-03 23:03:30 -04:00
parent 292a9bad23
commit f730be261a
2 changed files with 351 additions and 348 deletions

View file

@ -38,7 +38,8 @@ final case class DetailedPlayerData(pos : Option[PlacementData],
drawn_slot : DrawnSlot.Value)
(position_defined : Boolean) extends ConstructorData {
override def bitsize : Long = {
val posSize : Long = if(pos.isDefined) { pos.get.bitsize } else { 0 }
//factor guard bool values into the base size, not its corresponding optional field
val posSize : Long = if(pos.isDefined) { pos.get.bitsize } else { 0L }
val appSize : Long = basic_appearance.bitsize
val charSize = character_data.bitsize
val inventorySize : Long = if(inventory.isDefined) { inventory.get.bitsize } else { 0L }

File diff suppressed because one or more lines are too long