示例#1
0
        public StringList(IPointerTable pointerTable, IStringConverter stringConverter, int maxSize, int capacity) : base(capacity)
        {
            _pointerTable    = pointerTable;
            _maxSize         = maxSize;
            _stringConverter = stringConverter;

            var stringTableStart = pointerTable.Min(p => p.Offset);

            _currentSize = _pointerTable.Max(p => _stringConverter.GetLength(p) + p.Offset - stringTableStart);
        }
 /// <summary>
 /// Initialize a list of lists of columns.
 /// </summary>
 public UnderworldColumnLibraryList(IPointerTable pointerTable)
 {
     _pointerTable = pointerTable;
 }
示例#3
0
 public CharacterText(IPointerTable pointerTable, IStringFormatter stringFormatter, IStringConverter stringConverter, int maxLength, int count)
     : base(pointerTable, stringConverter, maxLength, count)
 {
     _stringFormatter = stringFormatter;
 }