ISession.cs 422 B

1234567891011121314151617181920
  1. using System;
  2. namespace CommonTickBattle.Battle.Host
  3. {
  4. public interface ISession
  5. {
  6. string PlayerUUID { get; }
  7. /// <summary>
  8. /// 发送给客户端
  9. /// </summary>
  10. /// <param name="msg"></param>
  11. void Send(TBMessage msg);
  12. /// <summary>
  13. /// 监听客户端消息
  14. /// </summary>
  15. event Action<ISession, TBRequest> OnReceived;
  16. }
  17. }