public override GenericRCOLResource.ChunkEntry Export( IDictionary <ulong, string> nameMap, bool exportAllNames) { System.IO.Stream s = null; TGIBlock tgi = new TGIBlock(0, null, "ITG", ResourceType, 0, 0); JazzDecisionGraph jdg = new JazzDecisionGraph(0, null, s); this.mDecisionMakers.Sort( AChunkObject.InstantiationComparer.Instance); JazzChunk.ChunkReferenceList odgi = jdg.OutboundDecisionGraphIndexes; foreach (DecisionGraphNode dm in this.mDecisionMakers) { odgi.Add(dm == null ? NullCRef : dm.ChunkReference); } this.mEntryPoints.Sort( AChunkObject.InstantiationComparer.Instance); JazzChunk.ChunkReferenceList idgi = jdg.InboundDecisionGraphIndexes; foreach (DecisionGraphNode ep in this.mEntryPoints) { idgi.Add(ep == null ? NullCRef : ep.ChunkReference); } return(new GenericRCOLResource.ChunkEntry(0, null, tgi, jdg)); }
public override GenericRCOLResource.ChunkEntry Export( IDictionary<ulong, string> nameMap, bool exportAllNames) { System.IO.Stream s = null; TGIBlock tgi = new TGIBlock(0, null, "ITG", ResourceType, 0, 0); JazzDecisionGraph jdg = new JazzDecisionGraph(0, null, s); this.mDecisionMakers.Sort( AChunkObject.InstantiationComparer.Instance); JazzChunk.ChunkReferenceList odgi = jdg.OutboundDecisionGraphIndexes; foreach (DecisionGraphNode dm in this.mDecisionMakers) { odgi.Add(dm == null ? NullCRef : dm.ChunkReference); } this.mEntryPoints.Sort( AChunkObject.InstantiationComparer.Instance); JazzChunk.ChunkReferenceList idgi = jdg.InboundDecisionGraphIndexes; foreach (DecisionGraphNode ep in this.mEntryPoints) { idgi.Add(ep == null ? NullCRef : ep.ChunkReference); } return new GenericRCOLResource.ChunkEntry(0, null, tgi, jdg); }