-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathASMPlayer.cs
More file actions
33 lines (32 loc) · 888 Bytes
/
ASMPlayer.cs
File metadata and controls
33 lines (32 loc) · 888 Bytes
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria.GameInput;
using Terraria.ModLoader;
using AttackSpeedMeter.ModSystems;
using AttackSpeedMeter.Helpers;
using Terraria;
namespace AttackSpeedMeter
{
public class ASMPlayer:ModPlayer
{
public override void ProcessTriggers(TriggersSet triggersSet)
{
if (AttackSpeedMeter.MeterKey.JustPressed)
{
ModContent.GetInstance<UISystem>().ToggleMeter();
}
base.ProcessTriggers(triggersSet);
}
public override void OnEnterWorld()
{
if (AttackSpeedMeter.MeterKey.GetAssignedKeys().Count == 0)
{
Main.NewText(LocalizationHelper.GetEnterWorldText());
}
base.OnEnterWorld();
}
}
}