コード例 #1
0
ファイル: TreeUnpack.cs プロジェクト: HexHash/LegacyRust
 private bool MoveNext()
 {
     if (this.meshEnumerator != null)
     {
         while (this.meshEnumerator.MoveNext())
         {
             TreeUnpack treeUnpack = this;
             treeUnpack.currentTreeIndex = treeUnpack.currentTreeIndex + 1;
             this.currentMesh = this.meshEnumerator.Current;
             if (!this.currentMesh)
             {
                 continue;
             }
             return true;
         }
     }
     if (!this.groupEnumerator.MoveNext())
     {
         return false;
     }
     this.currentGroup = this.groupEnumerator.Current;
     this.meshEnumerator = ((IEnumerable<Mesh>)this.currentGroup.meshes).GetEnumerator();
     return this.MoveNext();
 }
コード例 #2
0
 private bool MoveNext()
 {
     if (this.meshEnumerator != null)
     {
         while (this.meshEnumerator.MoveNext())
         {
             TreeUnpack treeUnpack = this;
             treeUnpack.currentTreeIndex = treeUnpack.currentTreeIndex + 1;
             this.currentMesh            = this.meshEnumerator.Current;
             if (!this.currentMesh)
             {
                 continue;
             }
             return(true);
         }
     }
     if (!this.groupEnumerator.MoveNext())
     {
         return(false);
     }
     this.currentGroup   = this.groupEnumerator.Current;
     this.meshEnumerator = ((IEnumerable <Mesh>) this.currentGroup.meshes).GetEnumerator();
     return(this.MoveNext());
 }