Add support for C# script extensions

- Allow defining function for use into the script
- Allow defining a ChatBot for loading it into MCC
- Improve sample script and add more examples
- Todo add new documentation into the readme file
This commit is contained in:
ORelio 2015-06-21 18:45:43 +02:00
parent a6b3bf0481
commit e29b4ee545
6 changed files with 115 additions and 26 deletions

View file

@ -6,10 +6,9 @@
for (int i = 0; i < 5; i++)
{
int count = GetVarAsInt("test");
count++;
int count = GetVarAsInt("test") + 1;
SetVar("test", count);
SendText("Hello World no. " + count);
PerformInternalCommand("log Sleeping for 5 seconds...");
LogToConsole("Sleeping for 5 seconds...");
Thread.Sleep(5000);
}