zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Model/Module/NetworkTCP/NetInnerComponent.cs

31 lines
811 B
C#
Executable File
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
namespace ET
{
public struct ProcessActorId
{
public int Process;
public long ActorId;
public ProcessActorId(long actorId)
{
InstanceIdStruct instanceIdStruct = new InstanceIdStruct(actorId);
this.Process = instanceIdStruct.Process;
instanceIdStruct.Process = Game.Options.Process;
this.ActorId = instanceIdStruct.ToLong();
}
}
public class NetInnerComponent: Entity
{
public AService Service;
public static NetInnerComponent Instance;
public IMessageDispatcher MessageDispatcher { get; set; }
public Random Random = new Random(Guid.NewGuid().GetHashCode());
}
}