35 lines
909 B
C#

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
namespace InputHandler
{
// Specific to the game
public class MappedInput
{
// We use hashets for the actions and the states because we just need to check if they are in the collection, and not retrieve them
public HashSet<string> Actions = new HashSet<string>();
public HashSet<string> States = new HashSet<string>();
public Dictionary<string, float> Ranges = new Dictionary<string, float>();
private int _playerIndex;
public int PlayerIndex
{
get { return _playerIndex; }
}
public MappedInput(int playerIndex)
{
_playerIndex = playerIndex;
}
public void Clear()
{
Actions.Clear();
States.Clear();
Ranges.Clear();
}
}
}