Esempio n. 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (DoodadInstances != null)
            {
                foreach (var instance in DoodadInstances)
                {
                    WorldFrame.Instance.M2Manager.RemoveInstance(instance.Hash, instance.Uuid);
                }

                DoodadInstances.Clear();
                DoodadInstances = null;
            }

            if (TextureNames != null)
            {
                TextureNames.Clear();
                TextureNames = null;
            }

            if (mTextures != null)
            {
                mTextures.Clear();
                mTextures = null;
            }

            FullVertices = null;
            Continent    = null;
        }
Esempio n. 2
0
 public virtual void Dispose()
 {
     DoodadInstances.Clear();
 }