IClockContainer.cs 544 B

12345678910111213141516171819
  1. namespace XGame.Framework.Time
  2. {
  3. public interface IClockContainer: ITimeUpdate
  4. {
  5. /// <summary>
  6. /// 添加一个时钟
  7. /// </summary>
  8. /// <param name="timeStamp">当前的时间戳</param>
  9. /// <returns>时钟</returns>
  10. IClock AddClock(long timestamp);
  11. /// <summary>
  12. /// 移除指定的时钟
  13. /// </summary>
  14. /// <param name="clock">指定的时钟</param>
  15. /// <returns>是否移除成功</returns>
  16. bool RemoveClock(IClock clock);
  17. }
  18. }