65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2026年01月26日 星期一 16:01:52
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using MemoryPack;
|
|
|
|
namespace TH1_Logic.Comic
|
|
{
|
|
// 淡入 淡出 左滑入 左滑出 右滑入 右滑出 上滑入 上滑出 下滑入 下滑出 字体浮现
|
|
public enum ComicActionType
|
|
{
|
|
None = 0,
|
|
FadeIn = 1,
|
|
FadeOut = 2,
|
|
SlideInLeft = 3,
|
|
SlideOutLeft = 4,
|
|
SlideInRight = 5,
|
|
SlideOutRight = 6,
|
|
SlideInUp = 7,
|
|
SlideOutUp = 8,
|
|
SlideInDown = 9,
|
|
SlideOutDown = 10,
|
|
TextAppear = 11,
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class ComicAction
|
|
{
|
|
public uint TargetId;
|
|
public ComicActionType ActionType;
|
|
public float Duration;
|
|
|
|
[MemoryPackIgnore] public float StartTime;
|
|
[MemoryPackIgnore] public bool IsFinished;
|
|
|
|
public ComicAction()
|
|
{
|
|
TargetId = 0;
|
|
ActionType = ComicActionType.None;
|
|
Duration = 1f;
|
|
}
|
|
}
|
|
|
|
|
|
public class ComicActionLogicFactory
|
|
{
|
|
public static ComicActionLogic GetActionLogic(ComicActionType actionType)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public abstract class ComicActionLogic
|
|
{
|
|
public abstract void SetStartState(ComicItemMono comicItem, ComicAction action);
|
|
public abstract void SetEndState(ComicItemMono comicItem, ComicAction action);
|
|
public abstract bool SetUpdateAction(ComicItemMono comicItem, ComicAction action, float progress);
|
|
}
|
|
} |