Files
MinFt/Client/Assets/Scripts/TimeManager/ITimeTickService.cs
2026-04-27 12:07:32 +08:00

32 lines
749 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using UniRx;
namespace TimeManager
{
/// <summary>
/// 统一 Tick 服务接口 - 提供秒级和分钟级的时间tick
/// </summary>
public interface ITimeTickService
{
/// <summary>
/// 每秒 tick倒计时用
/// </summary>
IObservable<long> SecondTick { get; }
/// <summary>
/// 每分钟 tick定时刷新用
/// </summary>
IObservable<long> MinuteTick { get; }
/// <summary>
/// 在 Stop 之后重新启动 Tick默认实现构造时已启动一般无需调用
/// </summary>
void Start();
/// <summary>
/// 停止服务
/// </summary>
void Stop();
}
}