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

            _implementation = new TmodFileImplementation(modFileType);
        }