Skip to content

AlamoEngine-Tools/EaW-Modinfo-Implementation

Repository files navigation

EaW-Modinfo-Implementation

CI/CD Master

C# implementation for the EaW Modinfo Specification

Features

Deserialize modinfo files into immutable Objects

var file = new FileInfo("modinfo.json");
IModinfoFile modinfoFile = new MainModinfoFile(file);

IModinfo modinfo = modinfoFile.GetModinfo();

Searching for modinfo files

var dir = new DirectoryInfo("YourModPath");
ModinfoFinderCollection result = ModinfoFileFinder.FindModinfoFiles(dir);

IModinfoFile mainFile = result.MainModinfo;
IEnumerable<IModinfoFile> variantFiles = result.Variants;

Merging modfino data

var file1 = new FileInfo("modinfo.json");
IModinfoFile mainModinfoFile = new MainModinfoFile(file1);

var file2 = new FileInfo("varaint-modinfo.json");
IModinfoFile variantDerived = new ModinfoVariantFile(file2, mainModinfoFile);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages