Class ContentRegistry<T>
- Namespace
- FTK2.ModAPI.Registries
- Assembly
- FTK2.ModAPI.dll
public sealed class ContentRegistry<T> : IReadOnlyRegistry<T>
Type Parameters
T
- Inheritance
-
ContentRegistry<T>
- Implements
- Inherited Members
Constructors
ContentRegistry(Func<T, string?>)
public ContentRegistry(Func<T, string?> validate)
Parameters
Properties
Entries
public IReadOnlyList<RegistryEntry<T>> Entries { get; }
Property Value
Methods
TryGet(string, out RegistryEntry<T>?)
public bool TryGet(string id, out RegistryEntry<T>? entry)
Parameters
idstringentryRegistryEntry<T>
Returns
TryRegister(string, string, T, out string?)
public bool TryRegister(string owner, string id, T definition, out string? error)