AxibugEmuOnline/AxibugEmuOnline.Client/Assets/VirtualNes.Core/State/DISKDATA.cs

23 lines
462 B
C#
Raw Normal View History

2024-08-29 17:20:01 +08:00
namespace VirtualNes.Core
{
2024-08-29 17:30:56 +08:00
public struct DISKDATA : IStateBufferObject
2024-08-29 17:20:01 +08:00
{
public int DifferentSize;
2024-08-29 17:30:56 +08:00
public uint GetSize()
{
return sizeof(int);
}
public void SaveState(StateBuffer buffer)
{
buffer.Write(DifferentSize);
}
2024-09-13 17:39:48 +08:00
public void LoadState(StateReader buffer)
{
DifferentSize = buffer.Read_int();
}
2024-08-29 17:20:01 +08:00
}
}