fix : 패킷 Vector3 -> Position 변경 (유니티 호환성)

This commit is contained in:
qornwh1
2026-03-08 23:46:34 +09:00
parent 3188dbeb3d
commit 5df664e05b
5 changed files with 11 additions and 11 deletions

View File

@@ -141,7 +141,7 @@ public class DummyClients
{
PlayerId = clientId,
RotY = rotY,
Position = new Packet.Vector3
Position = new Packet.Position
{
X = position.X,
Y = 0, // 높이는 버린다.

View File

@@ -25,7 +25,7 @@ public class EchoPacket
// ============================================================
[ProtoContract]
public class Vector3
public class Position
{
[ProtoMember(1)]
public float X
@@ -102,7 +102,7 @@ public class PlayerInfo
}
[ProtoMember(8)]
public Vector3 Position
public Position Position
{
get;
set;
@@ -287,7 +287,7 @@ public class TransformPlayerPacket
}
[ProtoMember(2)]
public Vector3 Position
public Position Position
{
get;
set;
@@ -399,7 +399,7 @@ public class TransformNpcPacket
}
[ProtoMember(2)]
public Vector3 Position
public Position Position
{
get;
set;

View File

@@ -152,7 +152,7 @@ public class StressTestClient
{
PlayerId = clientId,
RotY = rotY,
Position = new Packet.Vector3 { X = position.X, Y = 0, Z = position.Z }
Position = new Packet.Position { X = position.X, Y = 0, Z = position.Z }
};
byte[] data = PacketSerializer.Serialize((ushort)PacketCode.TRANSFORM_PLAYER, pkt);
writer.Put(data);

View File

@@ -333,7 +333,7 @@ public class GameServer : ServerBase
MaxHp = player.MaxHp,
Mp = player.Mp,
MaxMp = player.MaxMp,
Position = new Vector3 { X = player.PosX, Y = player.PosY, Z = player.PosZ },
Position = new Position { X = player.PosX, Y = player.PosY, Z = player.PosZ },
RotY = player.RotY,
};
}

View File

@@ -25,7 +25,7 @@ public class EchoPacket
// ============================================================
[ProtoContract]
public class Vector3
public class Position
{
[ProtoMember(1)]
public float X
@@ -102,7 +102,7 @@ public class PlayerInfo
}
[ProtoMember(8)]
public Vector3 Position
public Position Position
{
get;
set;
@@ -287,7 +287,7 @@ public class TransformPlayerPacket
}
[ProtoMember(2)]
public Vector3 Position
public Position Position
{
get;
set;
@@ -399,7 +399,7 @@ public class TransformNpcPacket
}
[ProtoMember(2)]
public Vector3 Position
public Position Position
{
get;
set;