ActorLocationSender.cs 452 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Net;
  3. namespace ETModel
  4. {
  5. // 知道对方的Id,使用这个类发actor消息
  6. public class ActorLocationSender : ComponentWithId
  7. {
  8. public long ActorId;
  9. // 最近接收消息的时间
  10. public long LastRecvTime;
  11. public int FailTimes;
  12. public const int MaxFailTimes = 5;
  13. public override void Dispose()
  14. {
  15. if (this.IsDisposed)
  16. {
  17. return;
  18. }
  19. base.Dispose();
  20. }
  21. }
  22. }