public override void Build(MetaBuilder mb, bool isRoot = false) { if (this.Nodes != null) { this.MetaStructure.Nodes = mb.AddItemArrayPtr(MetaName.CScenarioChainingNode, this.Nodes.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray()); } MCScenarioChainingNode.AddEnumAndStructureInfo(mb); if (this.Edges != null) { this.MetaStructure.Edges = mb.AddItemArrayPtr(MetaName.CScenarioChainingEdge, this.Edges.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray()); } MCScenarioChainingEdge.AddEnumAndStructureInfo(mb); if (this.Chains != null) { this.MetaStructure.Chains = mb.AddItemArrayPtr(MetaName.CScenarioChain, this.Chains.Select(e => { e.Build(mb); return(e.MetaStructure); }).ToArray()); } MCScenarioChain.AddEnumAndStructureInfo(mb); MUnk_4023740759.AddEnumAndStructureInfo(mb); if (isRoot) { mb.AddItem(this.MetaName, this.MetaStructure); this.Meta = mb.GetMeta(); } }
public override void Build(MetaBuilder mb, bool isRoot = false) { this.MetaStructure.Unk_1156691834 = this.Unk_1156691834; // this.MetaStructure.EdgeIds = this.EdgeIds; MCScenarioChain.AddEnumAndStructureInfo(mb); if (isRoot) { mb.AddItem(this.MetaName, this.MetaStructure); this.Meta = mb.GetMeta(); } }