You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
using System.Net; |
|
|
|
namespace ET |
|
{ |
|
public partial class StartProcessConfig |
|
{ |
|
private IPEndPoint innerIPPort; |
|
|
|
public long SceneId; |
|
|
|
public IPEndPoint InnerIPPort |
|
{ |
|
get |
|
{ |
|
if (this.innerIPPort == null) |
|
{ |
|
this.innerIPPort = NetworkHelper.ToIPEndPoint($"{this.InnerIP}:{this.InnerPort}"); |
|
} |
|
|
|
return this.innerIPPort; |
|
} |
|
} |
|
|
|
public string InnerIP => this.StartMachineConfig.InnerIP; |
|
|
|
public string OuterIP => this.StartMachineConfig.OuterIP; |
|
|
|
public StartMachineConfig StartMachineConfig => StartMachineConfigCategory.Instance.Get(this.MachineId); |
|
|
|
public override void AfterEndInit() |
|
{ |
|
InstanceIdStruct instanceIdStruct = new InstanceIdStruct((int)this.Id, 0); |
|
this.SceneId = instanceIdStruct.ToLong(); |
|
Log.Info($"StartProcess info: {this.MachineId} {this.Id} {this.SceneId}"); |
|
} |
|
} |
|
} |