-- This file is generated by tools/json2lua.js

local ffxiv_ipc_fellowship_info = Proto("ffxiv_ipc_fellowship_info", "FFXIV-IPC FellowshipInfo")

local fellowship_info_fields = {
  id          = ProtoField.uint64("ffxiv_ipc_fellowship_info.id", "ID", base.DEC),
  unknown1    = ProtoField.uint32("ffxiv_ipc_fellowship_info.unknown1", "Unknown1", base.DEC),
  unknown2    = ProtoField.uint32("ffxiv_ipc_fellowship_info.unknown2", "Unknown2", base.DEC),
  unknown3    = ProtoField.uint32("ffxiv_ipc_fellowship_info.unknown3", "Unknown3", base.DEC),
  create_time = ProtoField.uint32("ffxiv_ipc_fellowship_info.create_time", "CreateTime", base.DEC),
  vote_time   = ProtoField.uint32("ffxiv_ipc_fellowship_info.vote_time", "VoteTime", base.DEC),
  unknown4    = ProtoField.uint32("ffxiv_ipc_fellowship_info.unknown4", "Unknown4", base.DEC),
  join_time   = ProtoField.uint32("ffxiv_ipc_fellowship_info.join_time", "JoinTime", base.DEC),
}

ffxiv_ipc_fellowship_info.fields = fellowship_info_fields

function ffxiv_ipc_fellowship_info.dissector(tvbuf, pktinfo, root)
  local tree = root:add(ffxiv_ipc_fellowship_info, tvbuf)
  pktinfo.cols.info:set("FellowshipInfo")

  local len = tvbuf:len()

  -- dissect the id field
  local id_tvbr = tvbuf:range(0, 8)
  local id_val  = id_tvbr:le_uint64()
  tree:add_le(fellowship_info_fields.id, id_tvbr, id_val)

  -- dissect the unknown1 field
  local unknown1_tvbr = tvbuf:range(8, 4)
  local unknown1_val  = unknown1_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.unknown1, unknown1_tvbr, unknown1_val)

  -- dissect the unknown2 field
  local unknown2_tvbr = tvbuf:range(12, 4)
  local unknown2_val  = unknown2_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.unknown2, unknown2_tvbr, unknown2_val)

  -- dissect the unknown3 field
  local unknown3_tvbr = tvbuf:range(16, 4)
  local unknown3_val  = unknown3_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.unknown3, unknown3_tvbr, unknown3_val)

  -- dissect the create_time field
  local create_time_tvbr = tvbuf:range(20, 4)
  local create_time_val  = create_time_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.create_time, create_time_tvbr, create_time_val)

  -- dissect the vote_time field
  local vote_time_tvbr = tvbuf:range(24, 4)
  local vote_time_val  = vote_time_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.vote_time, vote_time_tvbr, vote_time_val)

  -- dissect the unknown4 field
  local unknown4_tvbr = tvbuf:range(28, 4)
  local unknown4_val  = unknown4_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.unknown4, unknown4_tvbr, unknown4_val)

  -- dissect the join_time field
  local join_time_tvbr = tvbuf:range(32, 4)
  local join_time_val  = join_time_tvbr:le_uint()
  tree:add_le(fellowship_info_fields.join_time, join_time_tvbr, join_time_val)

  return len
end