BizHawk/BizHawk.Client.Common/movie/MultitrackRecording.cs

55 lines
1.0 KiB
C#
Raw Normal View History

2013-10-25 00:59:34 +00:00
namespace BizHawk.Client.Common
{
public class MultitrackRecording
{
2013-10-28 01:06:51 +00:00
public bool IsActive { get; set; }
2013-10-28 01:06:51 +00:00
public int CurrentPlayer { get; set; }
2013-10-28 01:06:51 +00:00
public bool RecordAll { get; set; }
/// <summary>
/// A user friendly multitrack status
/// </summary>
public string CurrentState { get; set; }
public void SelectAll()
{
CurrentPlayer = 0;
RecordAll = true;
CurrentState = "Recording All";
}
public void SelectNone()
{
RecordAll = false;
CurrentPlayer = 0;
CurrentState = "Recording None";
}
public void Increment()
{
RecordAll = false;
CurrentPlayer++;
if (CurrentPlayer > Global.Emulator.ControllerDefinition.PlayerCount)
{
CurrentPlayer = 1;
}
CurrentState = "Recording Player " + CurrentPlayer;
}
public void Decrement()
{
RecordAll = false;
CurrentPlayer--;
if (CurrentPlayer < 1)
{
CurrentPlayer = Global.Emulator.ControllerDefinition.PlayerCount;
}
CurrentState = "Recording Player " + CurrentPlayer;
}
2013-10-25 00:59:34 +00:00
}
}