Пример #1
0
 public static void RegisterDictionaryPatch <TKey, TValue>(this IContentHelper helper, string assetName, string patchAssetName)
 {
     try
     {
         helper.RegisterDictionaryPatch(assetName, helper.Load <Dictionary <TKey, TValue> >(patchAssetName));
     }
     catch
     {
         EntoaroxFrameworkMod.Logger.Log($"[IContentHelper] The `{Globals.GetModName(helper)}` mod\'s attempt to inject data into the `{assetName}` asset failed, as the TKey and TValue given do not match those of the data to inject", LogLevel.Error);
     }
 }