-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModule.cs
78 lines (64 loc) · 1.53 KB
/
Module.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using M64MM.Additions;
using System;
using System.Collections.Generic;
namespace METALTwister
{
public class Module : IModule
{
AngleBlaster bform;
public string SafeName => "Twister";
public string Description => "Spin animations and enable Free Roam";
public void Close(EventArgs e)
{
}
public List<ToolCommand> GetCommands()
{
List<ToolCommand> returned = new List<ToolCommand>();
ToolCommand appear = new ToolCommand("Open Twister");
appear.Summoned += (a, b) => ShowForm();
returned.Add(appear);
return returned;
}
public void Initialize()
{
if (bform == null)
{
bform = new AngleBlaster();
}
}
void ShowForm()
{
if (bform == null)
{
Initialize();
}
else
{
bform.Show();
}
}
public void OnBaseAddressFound()
{
}
public void OnBaseAddressZero()
{
}
public void OnCoreEntAddressChange(uint addr)
{
}
public void Reset()
{
}
public void Update()
{
if (bform != null)
{
if (bform.AutoEnabled)
{
bform.AddAngle();
}
bform.ForceFreeRoam();
}
}
}
}