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); JazzActorOperationNode jaon = new JazzActorOperationNode(0, null, s); jaon.ActorDefinitionIndex = this.mActor == null ? NullCRef : this.mActor.ChunkReference; jaon.ActorOp = this.mOperation; jaon.Operand = this.mOperand; if (this.TargetCount > 0) { JazzChunk.ChunkReferenceList dgi = jaon.DecisionGraphIndexes; DecisionGraphNode[] targets = this.Targets; Array.Sort(targets, 0, targets.Length, AChunkObject.InstantiationComparer.Instance); for (int i = 0; i < targets.Length; i++) { dgi.Add(targets[i] == null ? NullCRef : targets[i].ChunkReference); } } return new GenericRCOLResource.ChunkEntry(0, null, tgi, jaon); }
public ActorOperationNode( JazzActorOperationNode.ActorOperation operation) : base(ResourceType, ResourceTag) { this.mActor = null; this.mOperation = operation; this.mOperand = 0; }