public override void Deserialize(DataStream dataStream) { entries.Clear(); this.listType = (DDFType)dataStream.ReadByte(); ushort count = dataStream.ReadUShort(); for (int i = 0; i < count; i++) { DDFBase entry = DDFFactory.Create(listType); entry.Deserialize(dataStream); entries.Add(entry); } }
public override void Deserialize(DataStream dataStream) { entries.Clear(); ushort count = dataStream.ReadUShort(); for (int i = 0; i < count; i++) { DDFString entryName = new DDFString(); entryName.Deserialize(dataStream); DDFType entryType = (DDFType)dataStream.ReadByte(); DDFBase entry = DDFFactory.Create(entryType); entry.Deserialize(dataStream); entries.Add(entryName.Value, entry); } }
public void Add(string name, DDFBase value) { // Must be a unique name. entries.Add(name, value); }
public int IndexOf(DDFBase entry) { return(entries.IndexOf(entry)); }
public bool Contains(DDFBase entry) { return(entries.Contains(entry)); }
public void Remove(DDFBase entry) { entries.Remove(entry); }
public void Add(DDFBase entry) { entries.Add(entry); }