Start MovieRecord and TasMovie objects, they are just stubs right now

This commit is contained in:
adelikat 2013-12-01 20:55:52 +00:00
parent 9ab2be558c
commit 1390b1a7e3
4 changed files with 230 additions and 0 deletions

View File

@ -131,11 +131,13 @@
<Compile Include="movie\MovieImport.cs" />
<Compile Include="movie\MovieLog.cs" />
<Compile Include="movie\MovieMnemonics.cs" />
<Compile Include="movie\MovieRecord.cs" />
<Compile Include="movie\MovieSession.cs" />
<Compile Include="movie\MultitrackRecording.cs" />
<Compile Include="movie\PlatformFrameRates.cs" />
<Compile Include="movie\Subtitle.cs" />
<Compile Include="movie\SubtitleList.cs" />
<Compile Include="movie\TasMovie.cs" />
<Compile Include="NESGameGenieEncoderDecoder.cs" />
<Compile Include="PathManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BizHawk.Client.Common
{
class MovieRecord : IMovieRecord
{
private List<byte> _state = new List<byte>();
public string Input { get; private set; }
public bool Lagged { get; private set; }
public IEnumerable<byte> State
{
get { return _state; }
}
public MovieRecord()
{
}
}
}

View File

@ -0,0 +1,203 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace BizHawk.Client.Common
{
public class TasMovie : IMovie
{
public bool IsCountingRerecords
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public bool IsActive
{
get { throw new NotImplementedException(); }
}
public bool IsPlaying
{
get { throw new NotImplementedException(); }
}
public bool IsRecording
{
get { throw new NotImplementedException(); }
}
public bool IsFinished
{
get { throw new NotImplementedException(); }
}
public bool Changes
{
get { throw new NotImplementedException(); }
}
public bool Loaded
{
get { throw new NotImplementedException(); }
}
public double FrameCount
{
get { throw new NotImplementedException(); }
}
public int InputLogLength
{
get { throw new NotImplementedException(); }
}
public ulong Rerecords
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public IMovieHeader Header
{
get { throw new NotImplementedException(); }
}
public string Filename
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public bool Load()
{
throw new NotImplementedException();
}
public void Save()
{
throw new NotImplementedException();
}
public void SaveAs()
{
throw new NotImplementedException();
}
public string GetInputLog()
{
throw new NotImplementedException();
}
public void StartNewRecording()
{
throw new NotImplementedException();
}
public void StartNewPlayback()
{
throw new NotImplementedException();
}
public void Stop(bool saveChanges = true)
{
throw new NotImplementedException();
}
public void SwitchToRecord()
{
throw new NotImplementedException();
}
public void SwitchToPlay()
{
throw new NotImplementedException();
}
public void ClearFrame(int frame)
{
throw new NotImplementedException();
}
public void ModifyFrame(string record, int frame)
{
throw new NotImplementedException();
}
public void AppendFrame(string record)
{
throw new NotImplementedException();
}
public void InsertFrame(string record, int frame)
{
throw new NotImplementedException();
}
public void InsertBlankFrame(int frame)
{
throw new NotImplementedException();
}
public void DeleteFrame(int frame)
{
throw new NotImplementedException();
}
public void TruncateMovie(int frame)
{
throw new NotImplementedException();
}
public void CommitFrame(int frameNum, Emulation.Common.IController source)
{
throw new NotImplementedException();
}
public void PokeFrame(int frameNum, string input)
{
throw new NotImplementedException();
}
public LoadStateResult CheckTimeLines(System.IO.TextReader reader, bool onlyGuid, bool ignoreGuidMismatch, out string errorMessage)
{
throw new NotImplementedException();
}
public string GetTime(bool preLoad)
{
throw new NotImplementedException();
}
public void ExtractInputLog(System.IO.TextReader reader, bool isMultitracking)
{
throw new NotImplementedException();
}
public string GetInput(int frame)
{
throw new NotImplementedException();
}
}
}

View File

@ -4,6 +4,7 @@ using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk