1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonTickBattle.Battle.Local
- {
- public interface IConnector
- {
- string PlayerUUID { get; }
- /// <summary>
- /// 发送给服务器
- /// </summary>
- /// <param name="msg"></param>
- void Send(TBMessage msg);
- /// <summary>
- /// 监听服务器消息
- /// </summary>
- event Action<IConnector, TBMessage> OnReceived;
- }
- }
|