123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System.Net;
- namespace ET.Server
- {
- public struct ProcessActorId
- {
- public int Process;
- public long ActorId;
- public ProcessActorId(long actorId)
- {
- InstanceIdStruct instanceIdStruct = new InstanceIdStruct(actorId);
- this.Process = instanceIdStruct.Process;
- instanceIdStruct.Process = Options.Instance.Process;
- this.ActorId = instanceIdStruct.ToLong();
- }
- }
-
- public class NetInnerComponentOnRead
- {
- public long ActorId;
- public object Message;
- public static NetInnerComponentOnRead Static = new();
- public static NetInnerComponentOnRead Clone(long id, object message)
- {
- Static.ActorId = id;
- Static.Message = message;
- return Static;
- }
- }
-
- [ComponentOf(typeof(Scene))]
- public class NetInnerComponent: Entity, IAwake<IPEndPoint>, IAwake, IDestroy
- {
- public int ServiceId;
-
- public NetworkProtocol InnerProtocol = NetworkProtocol.KCP;
- [StaticField]
- public static NetInnerComponent Instance;
- }
- }
|