/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> /// <param name="exportedCharacters">Exported characters.</param> public ExportAssetsTag(Assert[] exportedCharacters) { this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.ExportAssets; }
/// <summary> /// Removes the specified value. /// </summary> /// <param name="value">The value.</param> public void Remove(Assert value) { if (List.Contains(value)) List.Remove(value as object); }
/// <summary> /// Reads the data. /// </summary> /// <param name="version">Version.</param> /// <param name="binaryReader">Binary reader.</param> public override void ReadData(byte version, BufferedBinaryReader binaryReader) { RecordHeader rh = new RecordHeader(); rh.ReadData(binaryReader); ushort count = binaryReader.ReadUInt16(); exportedCharacters.Clear(); if (count > 0) { for (int i = 0; i < count; i++) { Assert exportedCharacter = new Assert(); exportedCharacter.ReadData(binaryReader); this.exportedCharacters.Add(exportedCharacter); } } }
/// <summary> /// Indexes the of. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public int IndexOf(Assert value) { return List.IndexOf(value); }
/// <summary> /// Inserts at the specified index. /// </summary> /// <param name="index">The index.</param> /// <param name="value">The value.</param> public void Insert(int index, Assert value) { List.Insert(index, value as object); }
/// <summary> /// Determines whether [contains] [the specified value]. /// </summary> /// <param name="value">The value.</param> /// <returns> /// <c>true</c> if [contains] [the specified value]; otherwise, <c>false</c>. /// </returns> public bool Contains(Assert value) { return List.Contains(value as object); }
/// <summary> /// Adds the range. /// </summary> /// <param name="values">The values.</param> public void AddRange(Assert[] values) { IEnumerator enums = values.GetEnumerator(); while (enums.MoveNext()) Add((Assert)enums.Current); }
/// <summary> /// Adds the specified value. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public Assert Add(Assert value) { List.Add(value as object); return value; }
/// <summary> /// Creates a new <see cref="ImportAssetsTag"/> instance. /// </summary> /// <param name="url">URL.</param> /// <param name="exportedCharacters">Exported characters.</param> public ImportAssetsTag(string url, Assert[] exportedCharacters) { this.url = url; this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.ExportAssets; }
/// <summary> /// Creates a new <see cref="ExportAssetsTag"/> instance. /// </summary> /// <param name="exportedCharacters">Exported characters.</param> public SymbolClassTag(Assert[] exportedCharacters) { this.exportedCharacters = new AssertCollection(); this.exportedCharacters.AddRange(exportedCharacters); this._tagCode = (int)TagCodeEnum.SymbolClass; }