public TmodFile(string path, TmodFileImplementation impl) { _impl = impl; Instance = impl.CreateTmodFile(path); }
public TmodFileWrapper(Assembly modLoaderAssembly) { var modFileType = modLoaderAssembly.GetType($"{Namespace}.{TypeName}") ?? throw new NotSupportedException(); _implementation = new TmodFileImplementation(modFileType); }