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

local ffxiv_ipc_company_submersible_status = Proto("ffxiv_ipc_company_submersible_status", "FFXIV-IPC CompanySubmersibleStatus")

local company_submersible_status_fields = {
}

ffxiv_ipc_company_submersible_status.fields = company_submersible_status_fields

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

  local len = tvbuf:len()

  -- dissect company_submersible_status_item
  local company_submersible_status_item_dissector = Dissector.get('ffxiv_ipc_company_submersible_status_item')
  local company_submersible_status_item_pos = 0
  local company_submersible_status_item_len = 36
  local company_submersible_status_item_count = 4

  while company_submersible_status_item_pos + company_submersible_status_item_len <= len do
    local company_submersible_status_item_tvbr = tvbuf:range(company_submersible_status_item_pos, 36)
    company_submersible_status_item_dissector:call(company_submersible_status_item_tvbr:tvb(), pktinfo, root)
    company_submersible_status_item_pos = company_submersible_status_item_pos + company_submersible_status_item_len
    company_submersible_status_item_count = company_submersible_status_item_count - 1
    if company_submersible_status_item_count <= 0 then
      break
    end
  end

  return len
end