/
Program.cs
61 lines (50 loc) · 2 KB
/
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
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
using System;
using EloBuddy;
using EloBuddy.SDK.Events;
using EloBuddy.SDK.Rendering;
using Settings = YasuoHu3Reborn.Config.Modes.Draw;
namespace YasuoHu3Reborn
{
public static class Program
{
// ReSharper disable once MemberCanBePrivate.Global
public const string ChampName = "Yasuo";
public static void Main(string[] args)
{
Loading.OnLoadingComplete += OnLoadingComplete;
}
private static void OnLoadingComplete(EventArgs args)
{
if (Player.Instance.ChampionName != ChampName)
{
return;
}
Config.Initialize();
SpellManager.Initialize();
ModeManager.Initialize();
DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
Drawing.OnDraw += OnDraw;
EvadePlus.Program.Initialize();
Evader.Init();
}
private static void OnDraw(EventArgs args)
{
if (Settings.DrawReady ? SpellManager.Q.IsReady() : Settings.DrawQ)
{
new Circle { Color = Settings.colorQ, BorderWidth = Settings._widthQ, Radius = SpellManager.Q.Range }.Draw(Player.Instance.Position);
}
if (Settings.DrawReady ? SpellManager.W.IsReady() : Settings.DrawW)
{
new Circle { Color = Settings.colorW, BorderWidth = Settings._widthW, Radius = SpellManager.W.Range }.Draw(Player.Instance.Position);
}
if (Settings.DrawReady ? SpellManager.E.IsReady() : Settings.DrawE)
{
new Circle { Color = Settings.colorE, BorderWidth = Settings._widthE, Radius = SpellManager.E.Range }.Draw(Player.Instance.Position);
}
if (Settings.DrawReady ? SpellManager.R.IsReady() : Settings.DrawR)
{
new Circle { Color = Settings.colorR, BorderWidth = Settings._widthR, Radius = SpellManager.R.Range }.Draw(Player.Instance.Position);
}
}
}
}