mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
34 lines
704 B
C#
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();
|
|
}
|
|
}
|
|
}
|