ShiftOS_TheReturn/ShiftOS.WinForms/ScriptingTestFunctions.cs

35 lines
704 B
C#
Raw Permalink Normal View History

2017-03-02 13:52:55 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Engine.Scripting;
namespace ShiftOS.WinForms
{
[Exposed("scriptingtests")]
public class ScriptingTestFunctions
{
public int testVar = 127;
public void testFunction()
{
Console.WriteLine("testFunction() called.");
}
public string testFunctionWithReturn(string arg)
{
return arg + "!";
}
public event Action testEvent;
public string testProperty { get; set; }
public void invokeTestEvent()
{
testEvent?.Invoke();
}
}
}