r2mods/ilspy_dump/ror2_csproj/RoR2/CatalogModHelperProxy.cs

32 lines
592 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using System.Collections.Generic;
using RoR2.ContentManagement;
using RoR2.Modding;
namespace RoR2;
public class CatalogModHelperProxy<TEntry>
{
private string name;
private NamedAssetCollection<TEntry> dest;
[Obsolete("Use IContentPackProvider instead.")]
public event Action<List<TEntry>> getAdditionalEntries
{
add
{
LegacyModContentPackProvider.instance.HandleLegacyGetAdditionalEntries(name, value, dest);
}
remove
{
}
}
public CatalogModHelperProxy(string name, NamedAssetCollection<TEntry> dest)
{
this.name = name;
this.dest = dest;
}
}