コード例 #1
0
 /// <summary>Initializes the manager.</summary>
 internal static void Init(IModHelper helper, IMonitor monitor)
 {
     config = helper.ReadConfig <BetterArtisanGoodIconsConfig>();
     foreach (Tuple <string, Texture2D> textureInfo in new ContentPackManager(helper, monitor, ArtisanGoodInfo.Keys).GetTextures())
     {
         TextureManagers.Add(new ArtisanGoodTextureManager(textureInfo.Item2, ArtisanGoodInfo[textureInfo.Item1].Item1, ArtisanGoodInfo[textureInfo.Item1].Item2));
     }
 }
コード例 #2
0
        /// <summary>Initializes the manager.</summary>
        internal static void Init(IModHelper helper, IMonitor monitor)
        {
            config = helper.ReadConfig <BetterArtisanGoodIconsConfig>();

            foreach (ArtisanGoodTextureProvider provider in ContentSourceManager.GetTextureProviders(helper, monitor))
            {
                TextureProviders.Add(provider);
            }
        }