NetInnerComponent.cs 853 B

1234567891011121314151617181920212223242526272829303132
  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. [ComponentOf(typeof(Scene))]
  21. public class NetInnerComponent: Entity, IAwake<IPEndPoint, int>, IAwake<int>, IDestroy
  22. {
  23. public AService Service;
  24. public static NetInnerComponent Instance;
  25. public int SessionStreamDispatcherType { get; set; }
  26. }
  27. }