Can parse CEPGP lua files generated by the World of Warcraft addon CEPGP.
Install-Package CepgpParser.Parser -Version X.X.X
- https://www.nuget.org/packages/CepgpParser.Parser/
Parse from file path
// Parse
CepgpLuaParser parser = new CepgpLuaParser();
parser.ParseFile("CEPGP.lua");
// Access data
parser.Records[0];
parser.Traffic[0];
Parse from stream
using (FileStream file = new FileStream("CEPGP.lua", FileMode.Open, FileAccess.Read))
{
// Parse
CepgpLuaParser parser = new CepgpLuaParser();
await parser.ParseAsync(file);
// Access data
parser.Records[0];
parser.Traffic[0];
}
Output
Se the tests for full examples with output.
Parse from file path
// Parse
CepgpLuaParser parser = new CepgpStandingsParser();
parser.ParseFile("CEPGP.lua");
// Access data
parser.Standings.Roster[0]
parser.Standings.Timestamp
Run tests
dotnet test .\Parser.Tests\