TAStudio - some reorg

This commit is contained in:
adelikat 2014-07-10 01:58:43 +00:00
parent e5d1dc111e
commit 655207d79a
3 changed files with 24 additions and 26 deletions

View File

@ -883,6 +883,7 @@
<DependentUpon>TAStudio.cs</DependentUpon>
<SubType>Form</SubType>
</Compile>
<Compile Include="tools\TAStudio\TAStudioClipboard.cs" />
<Compile Include="tools\TI83\TI83KeyPad.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -460,31 +460,5 @@ namespace BizHawk.Client.EmuHawk
#endregion
#endregion
#region Classes
public class TasClipboardEntry
{
private readonly Dictionary<string, bool> _buttons;
private readonly int _frame;
public TasClipboardEntry(int frame, Dictionary<string, bool> buttons)
{
_frame = frame;
_buttons = buttons;
}
public int Frame
{
get { return _frame; }
}
public Dictionary<string, bool> Buttons
{
get { return _buttons; }
}
}
#endregion
}
}

View File

@ -0,0 +1,23 @@
using BizHawk.Emulation.Common;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
public class TasClipboardEntry
{
public TasClipboardEntry(int frame, IController controllerState)
{
Frame = frame;
ControllerState = controllerState;
}
public int Frame { get; private set; }
public IController ControllerState { get; private set; }
public override string ToString()
{
var lg = Global.MovieSession.Movie.LogGeneratorInstance();
return lg.GenerateLogEntry();
}
}
}