Skip to content
Kevin Zhao edited this page Jan 25, 2018 · 7 revisions

Triton Documentation

This wiki serves as a comprehensive documentation of Triton's features.

Getting Started

You should install Triton using the NuGet package.

To get started, you should create a new Lua instance, which will create a new Lua environment:

using (var lua = new Lua()) {
    lua.DoString("print('Hello, world!')");
    lua.DoString(@"
        using 'System'
        Console.WriteLine(String.Concat('The time is ', DateTime.UtcNow.ToString()))");
}

Lua instances also support dynamic access:

using (dynamic lua = new Lua()) {
    lua.x = 10;
    lua.x += 1566;
}
Clone this wiki locally