NetInnerComponent.cs 726 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Concurrent;
  3. using System.Collections.Generic;
  4. namespace ET
  5. {
  6. public struct ProcessActorId
  7. {
  8. public int Process;
  9. public long ActorId;
  10. public ProcessActorId(long actorId)
  11. {
  12. InstanceIdStruct instanceIdStruct = new InstanceIdStruct(actorId);
  13. this.Process = instanceIdStruct.Process;
  14. instanceIdStruct.Process = Game.Options.Process;
  15. this.ActorId = instanceIdStruct.ToLong();
  16. }
  17. }
  18. public class NetInnerComponent: Entity
  19. {
  20. public AService Service;
  21. public static NetInnerComponent Instance;
  22. public IMessageDispatcher MessageDispatcher { get; set; }
  23. }
  24. }