Esempio n. 1
0
 /// <summary> Safely attempts to find the content instance with the specified name and mod name. Caching the result is recommended. </summary>
 /// <returns> Whether or not the requested instance has been found. </returns>
 public static bool TryFind <T>(string modName, string name, out T value) where T : IModType => ModTypeLookup <T> .TryGetValue(modName, name, out value);
Esempio n. 2
0
 /// <summary> Safely attempts to find the content instance with the specified full name. Caching the result is recommended. </summary>
 /// <returns> Whether or not the requested instance has been found. </returns>
 public static bool TryFind <T>(string fullname, out T value) where T : IModType => ModTypeLookup <T> .TryGetValue(fullname, out value);