Esempio n. 1
0
 public Texture GetItem(int ItemID)
 {
     if (this.m_Items == null)
     {
         this.m_Items = new ItemCache(this);
     }
     return this.m_Items[ItemID];
 }
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;
     }
 }