fix : 패킷 Vector3 -> Position 변경 (유니티 호환성)
This commit is contained in:
@@ -141,7 +141,7 @@ public class DummyClients
|
||||
{
|
||||
PlayerId = clientId,
|
||||
RotY = rotY,
|
||||
Position = new Packet.Vector3
|
||||
Position = new Packet.Position
|
||||
{
|
||||
X = position.X,
|
||||
Y = 0, // 높이는 버린다.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user