Пример #1
0
 public void InvalidateAll()
 {
     this._libAnimationClips   = null;
     this._libAnimations       = null;
     this._libCameras          = null;
     this._libControllers      = null;
     this._libEffects          = null;
     this._libForceFields      = null;
     this._libGeometries       = null;
     this._libImages           = null;
     this._libLights           = null;
     this._libMaterials        = null;
     this._libNodes            = null;
     this._libPhysicsMaterials = null;
     this._libPhysicsModels    = null;
     this._libPhysicsScenes    = null;
     this._libVisualScenes     = null;
 }
Пример #2
0
 public void Invalidate <T>()
 {
     if (typeof(T).Equals(typeof(LibraryAnimations)))
     {
         this._libAnimations = null;
     }
     else if (typeof(T).Equals(typeof(LibraryAnimationClips)))
     {
         this._libAnimationClips = null;
     }
     else if (typeof(T).Equals(typeof(LibraryCameras)))
     {
         this._libCameras = null;
     }
     else if (typeof(T).Equals(typeof(LibraryControllers)))
     {
         this._libControllers = null;
     }
     else if (typeof(T).Equals(typeof(LibraryEffects)))
     {
         this._libEffects = null;
     }
     else if (typeof(T).Equals(typeof(LibraryForceFields)))
     {
         this._libForceFields = null;
     }
     else if (typeof(T).Equals(typeof(LibraryGeometries)))
     {
         this._libGeometries = null;
     }
     else if (typeof(T).Equals(typeof(LibraryImages)))
     {
         this._libImages = null;
     }
     else if (typeof(T).Equals(typeof(LibraryLights)))
     {
         this._libLights = null;
     }
     else if (typeof(T).Equals(typeof(LibraryMaterials)))
     {
         this._libMaterials = null;
     }
     else if (typeof(T).Equals(typeof(LibraryNodes)))
     {
         this._libNodes = null;
     }
     else if (typeof(T).Equals(typeof(LibraryPhysicsMaterials)))
     {
         this._libPhysicsMaterials = null;
     }
     else if (typeof(T).Equals(typeof(LibraryPhysicsModels)))
     {
         this._libPhysicsModels = null;
     }
     else if (typeof(T).Equals(typeof(LibraryPhysicsScenes)))
     {
         this._libPhysicsScenes = null;
     }
     else if (typeof(T).Equals(typeof(LibraryVisualScenes)))
     {
         this._libVisualScenes = null;
     }
 }