public static bool Write(IWriter writer, KGEquipmentData val, string name = null) { if (!writer.StructBegin(KGEquipmentData.HASH_CODE, name)) { return(false); } DoWrite(writer, val.m_EquipmentItemData, "m_EquipmentItemData", Write); DoWrite(writer, val.m_EquipmentSlotData, "m_EquipmentSlotData", Write); return(writer.StructEnd()); }
public static bool Read(IReader reader, ref KGEquipmentData val, string name = null) { if (!reader.StructBegin(KGEquipmentData.HASH_CODE, name)) { return(false); } DoRead(reader, ref val.m_EquipmentItemData, "m_EquipmentItemData", Read); DoRead(reader, ref val.m_EquipmentSlotData, "m_EquipmentSlotData", Read); return(reader.StructEnd()); }