fix : playerID == hashkey 통일 / long => int로 변경
This commit is contained in:
@@ -12,7 +12,7 @@ public class DummyClients
|
||||
private EventBasedNetListener listener;
|
||||
private NetDataWriter? writer;
|
||||
public NetPeer? peer;
|
||||
public long clientId; // 일단 이게 hashKey가 됨 => 0 ~ 1000번까지는 더미용응로 뺴둠
|
||||
public int clientId; // 일단 이게 hashKey가 됨 => 0 ~ 1000번까지는 더미용응로 뺴둠
|
||||
|
||||
// info
|
||||
private Vector3 position = new Vector3();
|
||||
@@ -50,7 +50,7 @@ public class DummyClients
|
||||
get;
|
||||
}
|
||||
|
||||
public DummyClients(long clientId, string ip, int port, string key)
|
||||
public DummyClients(int clientId, string ip, int port, string key)
|
||||
{
|
||||
this.clientId = clientId;
|
||||
listener = new EventBasedNetListener();
|
||||
@@ -139,7 +139,7 @@ public class DummyClients
|
||||
UpdateDummy();
|
||||
TransformPlayerPacket transformPlayerPacket = new TransformPlayerPacket
|
||||
{
|
||||
PlayerId = (int)clientId,
|
||||
PlayerId = clientId,
|
||||
RotY = rotY,
|
||||
Position = new Packet.Vector3
|
||||
{
|
||||
|
||||
@@ -125,7 +125,7 @@ public class PlayerInfo
|
||||
public class DummyAccTokenPacket
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public long Token
|
||||
public int Token
|
||||
{
|
||||
get;
|
||||
set;
|
||||
@@ -533,7 +533,7 @@ public enum PartyUpdateType
|
||||
public class UpdatePartyPacket
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public int PartyId
|
||||
public long PartyId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
@@ -18,7 +18,7 @@ public class StressTestClient
|
||||
private EventBasedNetListener listener;
|
||||
private NetDataWriter? writer;
|
||||
public NetPeer? peer;
|
||||
public long clientId;
|
||||
public int clientId;
|
||||
|
||||
// 이동
|
||||
private Vector3 position = new Vector3();
|
||||
@@ -47,7 +47,7 @@ public class StressTestClient
|
||||
public double AvgRttMs => RttCount > 0 ? TotalRttMs / RttCount : 0;
|
||||
public bool IsConnected => peer != null;
|
||||
|
||||
public StressTestClient(long clientId, string ip, int port, string key)
|
||||
public StressTestClient(int clientId, string ip, int port, string key)
|
||||
{
|
||||
this.clientId = clientId;
|
||||
listener = new EventBasedNetListener();
|
||||
@@ -150,7 +150,7 @@ public class StressTestClient
|
||||
// 전송
|
||||
TransformPlayerPacket pkt = new TransformPlayerPacket
|
||||
{
|
||||
PlayerId = (int)clientId,
|
||||
PlayerId = clientId,
|
||||
RotY = rotY,
|
||||
Position = new Packet.Vector3 { X = position.X, Y = 0, Z = position.Z }
|
||||
};
|
||||
|
||||
@@ -107,7 +107,7 @@ public class StressTestService
|
||||
|
||||
for (int i = 0; i < batch; i++)
|
||||
{
|
||||
long id = created + 1; // 1-based (더미 범위)
|
||||
int id = created + 1; // 1-based (더미 범위)
|
||||
StressTestClient client = new StressTestClient(id, ip, port, key);
|
||||
lock (clientsLock)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user