-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Kevin Zhao edited this page Jan 25, 2018
·
7 revisions
This wiki serves as a comprehensive documentation of Triton's features.
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;
}