Exemplo n.º 1
0
        public AnimSource[] GetSourceToNamespaceToActorArray()
        {
            AnimNamespace[] namespaces;
            AnimSource      source;

            AnimSource[] sources
                = new AnimSource[this.mSrcFile2Ns2Actor.Count];
            int j, i = 0;

            foreach (KeyValuePair <string,
                                   SortedDictionary <string, ActorDefinition> > dict
                     in this.mSrcFile2Ns2Actor)
            {
                if (dict.Value == null)
                {
                    source = new AnimSource(dict.Key, null);
                }
                else
                {
                    j          = 0;
                    namespaces = new AnimNamespace[dict.Value.Count];
                    foreach (KeyValuePair <string, ActorDefinition> pair
                             in dict.Value)
                    {
                        namespaces[j++]
                            = new AnimNamespace(pair.Key, pair.Value);
                    }
                    source = new AnimSource(dict.Key, namespaces);
                }
                sources[i++] = source;
            }
            return(sources);
        }
Exemplo n.º 2
0
 public AnimSource[] GetSourceToNamespaceToActorArray()
 {
     AnimNamespace[] namespaces;
     AnimSource source;
     AnimSource[] sources
         = new AnimSource[this.mSrcFile2Ns2Actor.Count];
     int j, i = 0;
     foreach (KeyValuePair<string,
         SortedDictionary<string, ActorDefinition>> dict
         in this.mSrcFile2Ns2Actor)
     {
         if (dict.Value == null)
         {
             source = new AnimSource(dict.Key, null);
         }
         else
         {
             j = 0;
             namespaces = new AnimNamespace[dict.Value.Count];
             foreach (KeyValuePair<string, ActorDefinition> pair
                 in dict.Value)
             {
                 namespaces[j++]
                     = new AnimNamespace(pair.Key, pair.Value);
             }
             source = new AnimSource(dict.Key, namespaces);
         }
         sources[i++] = source;
     }
     return sources;
 }
Exemplo n.º 3
0
 public AnimSource(string fileName, AnimNamespace[] namespaces)
 {
     this.FileName = fileName;
     this.Namespaces = namespaces;
 }