46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Activity.HomeEntranceBtn;
|
|
using cfg;
|
|
|
|
namespace Activity
|
|
{
|
|
public interface IActivitySentry : IDisposable
|
|
{
|
|
IHomeEntranceBtn HomeEntranceBtn { get; set; }
|
|
FishingEvent CurrentEventConfig { get; set; }
|
|
|
|
/// <summary>
|
|
/// 该 Sentry 管理的所有相关活动配置(按优先级排序)
|
|
/// </summary>
|
|
List<FishingEvent> RelatedEvents { get; set; }
|
|
|
|
/// <summary>
|
|
/// 活动类型
|
|
/// </summary>
|
|
int EventType { get; }
|
|
|
|
/// <summary>
|
|
/// 活动子类型
|
|
/// </summary>
|
|
int EventSubType { get; }
|
|
/// <summary>
|
|
/// 活动开启时调用(由 Manager 调用)
|
|
/// </summary>
|
|
void Open(FishingEvent fishingEvent);
|
|
|
|
/// <summary>
|
|
/// 活动关闭时调用(由 Manager 调用)
|
|
/// </summary>
|
|
void Close(FishingEvent fishingEvent);
|
|
|
|
void InjectDependencies(ActivityScopeManager manager);
|
|
void RegisterHomeEntranceBtn(IHomeEntranceBtn homeEntranceBtn);
|
|
void UnregisterHomeEntranceBtn();
|
|
|
|
/// <summary>
|
|
/// 活动代币余额变更后由 <see cref="ActivityManager"/> 统一转发;覆盖直调 <see cref="Services.IEventTokenService"/> 的路径。
|
|
/// </summary>
|
|
void OnActivityTokenBalanceChanged(int eventId);
|
|
}
|
|
} |