Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.16 KB

README.md

File metadata and controls

63 lines (44 loc) · 1.16 KB

About

Can parse CEPGP lua files generated by the World of Warcraft addon CEPGP.

Install

Usage - Lua parsing

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.

Usage - Standings parsing

Parse from file path

// Parse
CepgpLuaParser parser = new CepgpStandingsParser();
parser.ParseFile("CEPGP.lua");

// Access data
parser.Standings.Roster[0]
parser.Standings.Timestamp

Develop

Run tests

dotnet test .\Parser.Tests\