Exemple #1
0
 public void Dispose()
 {
     int index = 0;
     while (index < 0x1000)
     {
         if (this.m_Items[index] != null)
         {
             this.m_Items[index].Dispose();
             this.m_Items[index] = null;
         }
         if (this.m_Land[index] != null)
         {
             this.m_Land[index].Dispose();
             this.m_Land[index] = null;
         }
         if (this.m_Textures[index] != null)
         {
             this.m_Textures[index].Dispose();
             this.m_Textures[index] = null;
         }
         index++;
     }
     while (index < 0x4000)
     {
         if (this.m_Items[index] != null)
         {
             this.m_Items[index].Dispose();
             this.m_Items[index] = null;
         }
         if (this.m_Land[index] != null)
         {
             this.m_Land[index].Dispose();
             this.m_Land[index] = null;
         }
         index++;
     }
     this.m_Items = null;
     this.m_Land = null;
     this.m_Textures = null;
     this.m_ItemHint = null;
     this.m_LandHint = null;
     this.m_TextureHint = null;
     if (this.m_Gumps != null)
     {
         this.m_Gumps.Dispose();
         this.m_Gumps = null;
     }
     if (this.m_Anim != null)
     {
         this.m_Anim.Dispose();
         this.m_Anim = null;
     }
     this.m_Colors = null;
 }
Exemple #2
0
 public Frames GetAnimation(int RealID)
 {
     if (this.m_Anim == null)
     {
         this.m_Anim = new AnimationCache(this);
     }
     return this.m_Anim[RealID];
 }
Exemple #3
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;
     }
 }