/// <summary> /// Inserts a field to the text table. /// </summary> public void InsertField(int index, string fieldName) { if (HasField(fieldName)) { return; } OnBeforeSerialize(); var id = m_nextFieldID++; m_fieldKeys.Insert(index, id); var field = new TextTableField(fieldName); field.texts.Add(0, string.Empty); m_fieldValues.Insert(index, field); OnAfterDeserialize(); }
public FieldKeyValuePair(int key, TextTableField value) { this.key = key; this.value = value; }