/// <summary> /// Stream the field to a tag stream /// </summary> /// <param name="ts"></param> public override void Write(IO.ITagStream ts) { if (Handle != Blam.StringId.Null && !ts.Flags.Test(IO.ITagStreamFlags.DontStreamStringData)) { string value = Program.GetTagIndex(OwnerId).StringIds.GetStringIdValue(Handle); ts.GetOutputStream().Write(value, value.Length); } }
/// <summary> /// Write the main body of this field to a tag stream /// </summary> /// <param name="ts"></param> public virtual void Write(IO.ITagStream ts) { this.Write(ts.GetOutputStream()); }
/// <summary> /// Stream the field header data to a tag stream /// </summary> /// <param name="ts"></param> public override void WriteHeader(IO.ITagStream ts) { IO.EndianWriter s = ts.GetOutputStream(); OwnerId = ts.OwnerId; Handle.Write(s); }
public void Write(IO.ITagStream ts) { IO.EndianWriter s = ts.GetOutputStream(); WriteHeader(s, ts); }