This commit is contained in:
huangjun
2026-08-30 22:25:23 +08:00
parent 92bf3e9097
commit 93a10a89c5
180 changed files with 15257 additions and 11604 deletions
@@ -68,6 +68,14 @@ namespace SepCore.Procedure
() =>
{
_loadedFlag[LubanTablesFlag] = true;
// Load save data; create a new game if no save exists
GameEntry.Save.Load();
if (!GameEntry.Save.HasSave && !GameEntry.Save.IsReady)
{
GameEntry.Save.CreateNewGame();
}
Log.Info("Load Luban data tables OK.");
},
errorMessage =>
@@ -1,5 +1,6 @@
using GameFramework.Fsm;
using GameFramework.Procedure;
using SepCore.Definition;
using SepCore.UI;
namespace SepCore.Procedure
@@ -15,15 +16,7 @@ namespace SepCore.Procedure
{
base.OnEnter(procedureOwner);
DialogParams context = new DialogParams()
{
Message = "This is a test dialog.",
Title = "This is a test dialog.",
Mode = 2,
ConfirmText = "确认",
CancelText = "取消",
};
GameEntry.UI.OpenDialog(context);
GameEntry.UI.OpenUIForm(UIFormType.LobbyForm);
}
protected override void OnUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds,
@@ -34,6 +27,8 @@ namespace SepCore.Procedure
protected override void OnLeave(IFsm<IProcedureManager> procedureOwner, bool isShutdown)
{
GameEntry.UI.CloseAllLoadedUIForms();
base.OnLeave(procedureOwner, isShutdown);
}