NetInnerComponent.cs 820 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Concurrent;
  3. using System.Collections.Generic;
  4. using System.Net;
  5. namespace ET
  6. {
  7. public struct ProcessActorId
  8. {
  9. public int Process;
  10. public long ActorId;
  11. public ProcessActorId(long actorId)
  12. {
  13. InstanceIdStruct instanceIdStruct = new InstanceIdStruct(actorId);
  14. this.Process = instanceIdStruct.Process;
  15. instanceIdStruct.Process = Game.Options.Process;
  16. this.ActorId = instanceIdStruct.ToLong();
  17. }
  18. }
  19. [ChildType(typeof(Session))]
  20. public class NetInnerComponent: Entity, IAwake<IPEndPoint, int>, IAwake<int>, IDestroy
  21. {
  22. public AService Service;
  23. public static NetInnerComponent Instance;
  24. public int SessionStreamDispatcherType { get; set; }
  25. }
  26. }