Ejemplo n.º 1
0
 internal static void ReloadGraphicsContent()
 {
     lock (ContentManagerLock)
     {
         /* Reload the graphic assets of each content manager. Also take the
          * opportunity to prune the list of any finalized content managers.
          */
         for (int i = ContentManagers.Count - 1; i >= 0; i -= 1)
         {
             WeakReference contentRef = ContentManagers[i];
             if (contentRef.IsAlive)
             {
                 ContentManager contentManager = (ContentManager)contentRef.Target;
                 if (contentManager != null)
                 {
                     contentManager.ReloadGraphicsAssets();
                 }
             }
             else
             {
                 ContentManagers.RemoveAt(i);
             }
         }
     }
 }
Ejemplo n.º 2
0
 internal static void ReloadGraphicsContent()
 {
     lock (ContentManagerLock)
     {
         /* Reload the graphic assets of each content manager. Also take the
          * opportunity to prune the list of any finalized content managers.
          */
         for (int i = ContentManagers.Count - 1; i >= 0; i -= 1)
         {
             ContentManager contentManager = ContentManagers[i];
             if (contentManager != null)
             {
                 contentManager.ReloadGraphicsAssets();
             }
         }
     }
 }
Ejemplo n.º 3
0
 internal static void ReloadGraphicsContent()
 {
     lock (ContentManager.ContentManagerLock)
     {
         for (int local_0 = ContentManager.ContentManagers.Count - 1; local_0 >= 0; --local_0)
         {
             WeakReference local_1 = ContentManager.ContentManagers[local_0];
             if (local_1.IsAlive)
             {
                 ContentManager local_2 = (ContentManager)local_1.Target;
                 if (local_2 != null)
                 {
                     local_2.ReloadGraphicsAssets();
                 }
             }
             else
             {
                 ContentManager.ContentManagers.RemoveAt(local_0);
             }
         }
     }
 }