NetInnerComponent.cs 787 B

123456789101112131415161718192021222324252627282930
  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. public class NetInnerComponent: Entity, IAwake<IPEndPoint, int>, IAwake<int>, IDestroy
  20. {
  21. public AService Service;
  22. public static NetInnerComponent Instance;
  23. public int SessionStreamDispatcherType { get; set; }
  24. }
  25. }