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,31 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class StoryChapterEndedEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(StoryChapterEndedEventArgs).GetHashCode();
public override int Id => EventId;
public int ChapterId { get; private set; }
public StoryChapterEndedEventArgs()
{
ChapterId = 0;
}
public static StoryChapterEndedEventArgs Create(int chapterId)
{
var args = ReferencePool.Acquire<StoryChapterEndedEventArgs>();
args.ChapterId = chapterId;
return args;
}
public override void Clear()
{
ChapterId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 04884ea6e03d99345b9e4a9c60ccf913
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: