/// <summary> /// 转文本输出 /// </summary> protected override void toWriteDataString(DataWriter writer) { writer.writeTabs(); writer.sb.Append("index"); writer.sb.Append(':'); writer.sb.Append(this.index); writer.writeEnter(); writer.writeTabs(); writer.sb.Append("list"); writer.sb.Append(':'); writer.sb.Append("List<ClientOfflineWorkData>"); if (this.list != null) { SList <ClientOfflineWorkData> listT = this.list; int listLen = listT.size(); writer.sb.Append('('); writer.sb.Append(listLen); writer.sb.Append(')'); writer.writeEnter(); writer.writeLeftBrace(); for (int listI = 0; listI < listLen; ++listI) { ClientOfflineWorkData listV = listT.get(listI); writer.writeTabs(); writer.sb.Append(listI); writer.sb.Append(':'); if (listV != null) { listV.writeDataString(writer); } else { writer.sb.Append("ClientOfflineWorkData=null"); } writer.writeEnter(); } writer.writeRightBrace(); } else { writer.sb.Append("=null"); } writer.writeEnter(); writer.writeTabs(); writer.sb.Append("clientRandomSeedIndex"); writer.sb.Append(':'); writer.sb.Append(this.clientRandomSeedIndex); writer.writeEnter(); }
/// <summary> /// 转文本输出 /// </summary> protected override void toWriteDataString(DataWriter writer) { base.toWriteDataString(writer); writer.writeTabs(); writer.sb.Append("records"); writer.sb.Append(':'); writer.sb.Append("List<ClientOfflineWorkData>"); if (this.records != null) { SList <ClientOfflineWorkData> recordsT = this.records; int recordsLen = recordsT.size(); writer.sb.Append('('); writer.sb.Append(recordsLen); writer.sb.Append(')'); writer.writeEnter(); writer.writeLeftBrace(); for (int recordsI = 0; recordsI < recordsLen; ++recordsI) { ClientOfflineWorkData recordsV = recordsT.get(recordsI); writer.writeTabs(); writer.sb.Append(recordsI); writer.sb.Append(':'); if (recordsV != null) { recordsV.writeDataString(writer); } else { writer.sb.Append("ClientOfflineWorkData=null"); } writer.writeEnter(); } writer.writeRightBrace(); } else { writer.sb.Append("=null"); } writer.writeEnter(); writer.writeTabs(); writer.sb.Append("clientRandomSeedIndex"); writer.sb.Append(':'); writer.sb.Append(this.clientRandomSeedIndex); writer.writeEnter(); }