Package gaiasky.data

Class AssetBean


  • public class AssetBean
    extends java.lang.Object
    Utility class to hold the assets that must be loaded when the OpenGL context is present. If the AssetManager has been set, it delegates the loading to it.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addAsset​(java.lang.String assetName, java.lang.Class assetClass)  
      static void addAsset​(java.lang.String assetName, java.lang.Class assetClass, com.badlogic.gdx.assets.AssetLoaderParameters params)  
      static java.util.Set<AssetBean> getAssets()  
      void load​(com.badlogic.gdx.assets.AssetManager manager)
      Invokes the load operation on the given AssetManager for this given AssetBean.
      static com.badlogic.gdx.assets.AssetManager manager()  
      static void setAssetManager​(com.badlogic.gdx.assets.AssetManager manager)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addAsset

        public static void addAsset​(java.lang.String assetName,
                                    java.lang.Class assetClass)
      • addAsset

        public static void addAsset​(java.lang.String assetName,
                                    java.lang.Class assetClass,
                                    com.badlogic.gdx.assets.AssetLoaderParameters params)
      • getAssets

        public static java.util.Set<AssetBean> getAssets()
      • setAssetManager

        public static void setAssetManager​(com.badlogic.gdx.assets.AssetManager manager)
      • manager

        public static com.badlogic.gdx.assets.AssetManager manager()
      • load

        public void load​(com.badlogic.gdx.assets.AssetManager manager)
        Invokes the load operation on the given AssetManager for this given AssetBean.
        Parameters:
        manager -