Exemple #1
0
 public void Draw(float deltaTime, object userData = null)
 {
     if (this.d != null)
     {
         for (int lineIndex = 0; lineIndex < this.d.Lines.Count; lineIndex++)
         {
             DeviceChunkLine line = this.d.Lines[lineIndex];
             for (int chunkIndex = 0; chunkIndex < line.Chunks.Count; chunkIndex++)
             {
                 DeviceChunk chunk = line.Chunks[chunkIndex];
                 string      linkText;
                 if (this.d.Links.TryGetValue(chunk, out linkText))
                 {
                     chunk.Draw(deltaTime, linkText, userData);
                 }
                 else
                 {
                     chunk.Draw(deltaTime, null, userData);
                 }
             }
         }
     }
 }
 public void Draw(float deltaTime)
 {
     if (this.d != null)
     {
         for (int lineIndex = 0; lineIndex < this.d.Lines.Count; lineIndex++)
         {
             DeviceChunkLine line = this.d.Lines[lineIndex];
             for (int chunkIndex = 0; chunkIndex < line.Chunks.Count; chunkIndex++)
             {
                 DeviceChunk chunk = line.Chunks[chunkIndex];
                 chunk.Draw(deltaTime);
             }
         }
     }
 }