ActorMessageSender.cs 343 B

12345678910111213141516171819
  1. using System.Net;
  2. namespace ETModel
  3. {
  4. // 知道对方的instanceId,使用这个类发actor消息
  5. public struct ActorMessageSender
  6. {
  7. // actor的地址
  8. public IPEndPoint Address;
  9. public long ActorId;
  10. public ActorMessageSender(long actorId, IPEndPoint address)
  11. {
  12. this.ActorId = actorId;
  13. this.Address = address;
  14. }
  15. }
  16. }