internal override void WriteAscii(FbxVersion version, LineStringBuilder lineStringBuilder, int indentLevel) { var arrayLength = Values.Length; WriteAsciiArray(version, lineStringBuilder, arrayLength, indentLevel, (itemWriter) => { for (var i = 0; i < Values.Length; i++) { if (i > 0) { lineStringBuilder.Append(","); } lineStringBuilder.Append(Values[i].ToString()); } }); }
internal void WriteAsciiArray(FbxVersion version, LineStringBuilder lineStringBuilder, int arrayLength, int indentLevel, Action <LineStringBuilder> itemWriterAction) { if (version >= FbxVersion.v7_1) { lineStringBuilder.Append("*").Append(arrayLength.ToString()).Append(" {\n"); lineStringBuilder.Indent(indentLevel + 1); lineStringBuilder.Append("a: "); } itemWriterAction.Invoke(lineStringBuilder); if (version >= FbxVersion.v7_1) { lineStringBuilder.Append("\n"); lineStringBuilder.Indent(indentLevel); lineStringBuilder.Append("}"); } }
internal override void WriteAscii(FbxVersion version, LineStringBuilder lineStringBuilder, int indentLevel) { lineStringBuilder.Append($"{Value}:"); }