public void WriteXml(StringBuilder sb, int indent) { CacheDatXml.StringTag(sb, indent, "name", CacheDatXml.HashString(Name)); CacheDatXml.StringTag(sb, indent, "parent", CacheDatXml.HashString(ParentName)); CacheDatXml.ValueTag(sb, indent, "contentFlags", ContentFlags.ToString()); CacheDatXml.SelfClosingTag(sb, indent, "streamingExtentsMin " + FloatUtil.GetVector3XmlString(streamingExtentsMin)); CacheDatXml.SelfClosingTag(sb, indent, "streamingExtentsMax " + FloatUtil.GetVector3XmlString(streamingExtentsMax)); CacheDatXml.SelfClosingTag(sb, indent, "entitiesExtentsMin " + FloatUtil.GetVector3XmlString(entitiesExtentsMin)); CacheDatXml.SelfClosingTag(sb, indent, "entitiesExtentsMax " + FloatUtil.GetVector3XmlString(entitiesExtentsMax)); CacheDatXml.ValueTag(sb, indent, "unk1", Unk1.ToString()); CacheDatXml.ValueTag(sb, indent, "unk2", Unk2.ToString()); CacheDatXml.ValueTag(sb, indent, "unk3", Unk3.ToString()); CacheDatXml.ValueTag(sb, indent, "unk4", Unk4.ToString()); }
public override int GetHashCode() { int hash = 1; if (Trainer.Length != 0) { hash ^= Trainer.GetHashCode(); } if (Monster.Length != 0) { hash ^= Monster.GetHashCode(); } if (Unk3 != 0) { hash ^= Unk3.GetHashCode(); } if (Unk4 != 0) { hash ^= Unk4.GetHashCode(); } if (Unk5 != 0) { hash ^= Unk5.GetHashCode(); } if (Unk6 != 0) { hash ^= Unk6.GetHashCode(); } if (Unk7 != 0) { hash ^= Unk7.GetHashCode(); } if (Number.Length != 0) { hash ^= Number.GetHashCode(); } if (Empty.Length != 0) { hash ^= Empty.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override void Write(BinaryWriter Writer) { base.Write(Writer); Writer.Write(Unk0); Position.WriteToFile(Writer); Rotation.WriteToFile(Writer); Writer.Write(Unk1); Writer.Write(Unk2); Writer.Write(Unk3); Unk4.WriteToFile(Writer); Writer.Write(Unk5); Writer.Write(Unk6); Writer.Write(Unk7); Writer.Write((ushort)Unk8.Length); foreach (uint Value in Unk8) { Writer.Write(Value); } Writer.Write(Unk9); }