IConnector.cs 499 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace CommonTickBattle.Battle.Local
  6. {
  7. public interface IConnector
  8. {
  9. string PlayerUUID { get; }
  10. /// <summary>
  11. /// 发送给服务器
  12. /// </summary>
  13. /// <param name="msg"></param>
  14. void Send(TBMessage msg);
  15. /// <summary>
  16. /// 监听服务器消息
  17. /// </summary>
  18. event Action<IConnector, TBMessage> OnReceived;
  19. }
  20. }