-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
30 lines (27 loc) · 848 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// This needs to appear once in an assembly to have it run the macro plugin
[assembly:MacroSharp.MacroPlugin]
namespace MacroSharp.Examples
{
class Program
{
static void Main(string[] args)
{
var testNPC = new TestNPCMacro();
testNPC.PropertyChanged += TestNPC_PropertyChanged;
testNPC.X = 5;
testNPC.Name = "Roslyn";
testNPC.NameNoNPC = "This should not print";
testNPC.X = 10;
Console.ReadLine();
}
private static void TestNPC_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
Console.WriteLine("You changed " + e.PropertyName);
}
}
}