예제 #1
0
        /// <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();
        }
예제 #2
0
 public FieldKeyValuePair(int key, TextTableField value)
 {
     this.key   = key;
     this.value = value;
 }