AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_LoadState.cs

31 lines
875 B
C#
Raw Normal View History

2024-09-13 17:39:48 +08:00
using AxibugEmuOnline.Client.ClientCore;
using System.Diagnostics;
namespace AxibugEmuOnline.Client
{
public class InGameUI_LoadState : ExecuteMenu
{
private InGameUI m_gameUI;
2024-11-08 11:49:33 +08:00
public override bool Visible => !m_gameUI.IsNetPlay;
2024-09-13 17:39:48 +08:00
public InGameUI_LoadState(InGameUI gameUI) : base("<22><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>", null)
{
m_gameUI = gameUI;
}
public override void OnExcute()
{
2024-11-08 11:49:33 +08:00
if (m_gameUI.IsNetPlay) return;
2024-11-08 11:38:32 +08:00
2024-11-07 19:18:50 +08:00
object state = m_gameUI.GetQuickState();
2024-09-13 17:39:48 +08:00
Stopwatch sw = Stopwatch.StartNew();
2024-11-07 19:18:50 +08:00
if (state != null)
{
m_gameUI.Core.LoadState(state);
sw.Stop();
App.log.Info($"{m_gameUI.RomFile.Platform}====><3E><><EFBFBD>ռ<EFBFBD><D5BC>غ<EFBFBD>ʱ:{sw.Elapsed.TotalMilliseconds}ms");
}
2024-09-13 17:39:48 +08:00
}
}
}