public void serialize(byte[] data, int offset) { LittleEndian.putInt(data, 0x0 + offset, field_1_iStartAt); data[0x4 + offset] = field_2_nfc; data[0x5 + offset] = field_3_info; System.arraycopy(field_4_rgbxchNums, 0, data, 0x6 + offset, field_4_rgbxchNums.length); data[0xf + offset] = field_5_ixchFollow; LittleEndian.putInt(data, 0x10 + offset, field_6_dxaIndentSav); LittleEndian.putInt(data, 0x14 + offset, field_7_unused2); LittleEndian.putUByte(data, 0x18 + offset, field_8_cbGrpprlChpx); LittleEndian.putUByte(data, 0x19 + offset, field_9_cbGrpprlPapx); LittleEndian.putUByte(data, 0x1a + offset, field_10_ilvlRestartLim); field_11_grfhic.serialize(data, 0x1b + offset); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + field_1_iStartAt; result = prime * result + field_2_nfc; result = prime * result + field_3_info; result = prime * result + Arrays.hashCode(field_4_rgbxchNums); result = prime * result + field_5_ixchFollow; result = prime * result + field_6_dxaIndentSav; result = prime * result + field_7_unused2; result = prime * result + field_8_cbGrpprlChpx; result = prime * result + field_9_cbGrpprlPapx; result = prime * result + field_10_ilvlRestartLim; result = prime * result + field_11_grfhic.hashCode(); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; LVLFAbstractType other = (LVLFAbstractType) obj; if (field_1_iStartAt != other.field_1_iStartAt) return false; if (field_2_nfc != other.field_2_nfc) return false; if (field_3_info != other.field_3_info) return false; if (!Arrays.equals(field_4_rgbxchNums, other.field_4_rgbxchNums)) return false; if (field_5_ixchFollow != other.field_5_ixchFollow) return false; if (field_6_dxaIndentSav != other.field_6_dxaIndentSav) return false; if (field_7_unused2 != other.field_7_unused2) return false; if (field_8_cbGrpprlChpx != other.field_8_cbGrpprlChpx) return false; if (field_9_cbGrpprlPapx != other.field_9_cbGrpprlPapx) return false; if (field_10_ilvlRestartLim != other.field_10_ilvlRestartLim) return false; if (field_11_grfhic == null) { if (other.field_11_grfhic != null) return false; } else if (!field_11_grfhic.equals(other.field_11_grfhic)) return false; return true; }