Beispiel #1
0
 internal void Setup(MovesetFile node, int offset, string name)
 {
     _name   = name;
     _root   = node;
     _offset = offset;
     if (_size <= 0)
     {
         _size = _root.GetSize(_offset);
     }
     _root.EntryCache[_offset] = this;
     if ((_externalEntry = _root.TryGetExternal(offset)) != null)
     {
         _externalEntry.References.Add(this);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Returns the size of the entry at the given offset.
 /// </summary>
 public int GetSize(int offset)
 {
     return(_root.GetSize(offset));
 }