gameplay refine

1. 优化 ResolutionAdapter 的分辨率适配问题
2. 调整 SpriteCache 的资源路径拼接
3. 引入 StoryDirector 做各玩法的胶水
4. 导入和改名资源便于代码查询路径
This commit is contained in:
2026-04-20 15:26:36 +08:00
parent cc5d8edec4
commit 0f928f6167
56 changed files with 1218 additions and 621 deletions
@@ -0,0 +1,42 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class DialogCompletedEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(DialogCompletedEventArgs).GetHashCode();
public override int Id => EventId;
public int ChapterId { get; private set; }
public int DialogId { get; private set; }
public int LastLineId { get; private set; }
public DialogCompletedEventArgs()
{
ChapterId = 0;
DialogId = 0;
LastLineId = 0;
}
public static DialogCompletedEventArgs Create(int chapterId, int dialogId, int lastLineId)
{
var args = ReferencePool.Acquire<DialogCompletedEventArgs>();
args.ChapterId = chapterId;
args.DialogId = dialogId;
args.LastLineId = lastLineId;
return args;
}
public override void Clear()
{
ChapterId = 0;
DialogId = 0;
LastLineId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ff3fd581bec19164c8c5b03222e0ccec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: