Merge pull request #212 from alexguirre/clip-tags

Rename ClipTag.Unknown40/44 to Start/EndPhase
This commit is contained in:
dexyfex 2023-08-21 14:47:19 +10:00 committed by GitHub
commit f8fa095322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4400,8 +4400,8 @@ namespace CodeWalker.GameFiles
get { return 80; } get { return 80; }
} }
public float Unknown_40h { get; set; } public float StartPhase { get; set; }
public float Unknown_44h { get; set; } public float EndPhase { get; set; }
public ulong TagsPointer { get; set; } public ulong TagsPointer { get; set; }
// reference data // reference data
@ -4413,8 +4413,8 @@ namespace CodeWalker.GameFiles
base.Read(reader, parameters); base.Read(reader, parameters);
// read structure data // read structure data
this.Unknown_40h = reader.ReadSingle(); this.StartPhase = reader.ReadSingle();
this.Unknown_44h = reader.ReadSingle(); this.EndPhase = reader.ReadSingle();
this.TagsPointer = reader.ReadUInt64(); this.TagsPointer = reader.ReadUInt64();
// read reference data // read reference data
@ -4431,8 +4431,8 @@ namespace CodeWalker.GameFiles
this.TagsPointer = (ulong)(this.Tags != null ? this.Tags.FilePosition : 0); this.TagsPointer = (ulong)(this.Tags != null ? this.Tags.FilePosition : 0);
// write structure data // write structure data
writer.Write(this.Unknown_40h); writer.Write(this.StartPhase);
writer.Write(this.Unknown_44h); writer.Write(this.EndPhase);
writer.Write(this.TagsPointer); writer.Write(this.TagsPointer);
} }
@ -4445,21 +4445,21 @@ namespace CodeWalker.GameFiles
public override string ToString() public override string ToString()
{ {
return base.ToString() + ": " + Unknown_40h.ToString() + ", " + Unknown_44h.ToString(); return base.ToString() + ": " + StartPhase.ToString() + ", " + EndPhase.ToString();
} }
public override void WriteXml(StringBuilder sb, int indent) public override void WriteXml(StringBuilder sb, int indent)
{ {
base.WriteXml(sb, indent); base.WriteXml(sb, indent);
YcdXml.ValueTag(sb, indent, "Unknown40", FloatUtil.ToString(Unknown_40h)); YcdXml.ValueTag(sb, indent, "StartPhase", FloatUtil.ToString(StartPhase));
YcdXml.ValueTag(sb, indent, "Unknown44", FloatUtil.ToString(Unknown_44h)); YcdXml.ValueTag(sb, indent, "EndPhase", FloatUtil.ToString(EndPhase));
} }
public override void ReadXml(XmlNode node) public override void ReadXml(XmlNode node)
{ {
base.ReadXml(node); base.ReadXml(node);
Unknown_40h = Xml.GetChildFloatAttribute(node, "Unknown40", "value"); StartPhase = Xml.GetChildFloatAttribute(node, "StartPhase", "value");
Unknown_44h = Xml.GetChildFloatAttribute(node, "Unknown44", "value"); EndPhase = Xml.GetChildFloatAttribute(node, "EndPhase", "value");
} }
} }