This repository has been archived on 2025-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ShiftOS_TheReturn/ShiftOS.WinForms/ScriptingTestFunctions.cs
2017-03-02 08:53:01 -05:00

34 lines
704 B
C#

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();
}
}
}