Exemplo n.º 1
0
 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);
     JazzCreatePropNode jcpn = new JazzCreatePropNode(0, null, s);
     jcpn.ActorDefinitionIndex = this.mPropActor == null
         ? NullCRef : this.mPropActor.ChunkReference;
     jcpn.ParameterDefinitionIndex = this.mPropParam == null
         ? NullCRef : this.mPropParam.ChunkReference;
     jcpn.PropResource = this.mPropKey;
     if (this.TargetCount > 0)
     {
         JazzChunk.ChunkReferenceList dgi = jcpn.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, jcpn);
 }
Exemplo n.º 2
0
        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);
            JazzCreatePropNode jcpn = new JazzCreatePropNode(0, null, s);

            jcpn.ActorDefinitionIndex = this.mPropActor == null
                ? NullCRef : this.mPropActor.ChunkReference;
            jcpn.ParameterDefinitionIndex = this.mPropParam == null
                ? NullCRef : this.mPropParam.ChunkReference;
            jcpn.PropResource = this.mPropKey;
            if (this.TargetCount > 0)
            {
                JazzChunk.ChunkReferenceList dgi     = jcpn.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, jcpn));
        }