Esempio n. 1
0
 public Texture GetTexture(int TextureID)
 {
     if (this.m_Textures == null)
     {
         this.m_Textures = new TextureCache(this);
     }
     return this.m_Textures[TextureID];
 }
Esempio n. 2
0
 public void Dispose()
 {
     if (this.m_Items != null)
     {
         this.m_Items.Dispose();
         this.m_Items = null;
     }
     if (this.m_Gumps != null)
     {
         this.m_Gumps.Dispose();
         this.m_Gumps = null;
     }
     if (this.m_Land != null)
     {
         this.m_Land.Dispose();
         this.m_Land = null;
     }
     if (this.m_Textures != null)
     {
         this.m_Textures.Dispose();
         this.m_Textures = null;
     }
     if (this.m_Anim != null)
     {
         this.m_Anim.Dispose();
         this.m_Anim = null;
     }
 }