-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.cs
More file actions
24 lines (22 loc) · 719 Bytes
/
Copy pathButton.cs
File metadata and controls
24 lines (22 loc) · 719 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
using Microsoft.Xna.Framework.Input;
namespace ButtonMash
{
public struct Button
{
public Player Player { get; }
public ButtonName ButtonName { get; }
public ActionState ActionState { get; }
public Keys[] Keys { get; }
public Buttons[] Buttons { get; }
public float TimeHeld {get; }
public Button(Player player, ButtonName buttonName, Keys[] keys, Buttons[] buttons, float timeHeld = 0f, ActionState actionState = ActionState.None)
{
Player = player;
ButtonName = buttonName;
ActionState = actionState;
Keys = keys;
Buttons = buttons;
TimeHeld = timeHeld;
}
}
}