Example #1
0
 /// <summary>
 /// Creates a new instance of the library
 /// </summary>
 public TextureLibrary()
 {
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("TEXTURE_LIBRARY"))
     {
         TextureConfig config = new TextureConfig(node);
         _configs.Add(config);
     }
 }
Example #2
0
 /// <summary>
 /// Sees if the config exists and stores it in the ref value if so.
 /// </summary>
 /// <param name="name">Name of the config searched for</param>
 /// <param name="config">Variable to store the result in</param>
 public bool TryGetConfig(string name, ref TextureConfig config)
 {
     if (ConfigExists(name))
     {
         config = GetConfig(name);
         return true;
     }
     if (name != "none" && name != string.Empty) { UnityEngine.Debug.LogWarning("[RealChute]: Could not find the " + name + " texture config in the GameData folder"); }
     return false;
 }