fix : 패킷 Vector3 -> Position 변경 (유니티 호환성)
This commit is contained in:
@@ -141,7 +141,7 @@ public class DummyClients
|
|||||||
{
|
{
|
||||||
PlayerId = clientId,
|
PlayerId = clientId,
|
||||||
RotY = rotY,
|
RotY = rotY,
|
||||||
Position = new Packet.Vector3
|
Position = new Packet.Position
|
||||||
{
|
{
|
||||||
X = position.X,
|
X = position.X,
|
||||||
Y = 0, // 높이는 버린다.
|
Y = 0, // 높이는 버린다.
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class EchoPacket
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
[ProtoContract]
|
[ProtoContract]
|
||||||
public class Vector3
|
public class Position
|
||||||
{
|
{
|
||||||
[ProtoMember(1)]
|
[ProtoMember(1)]
|
||||||
public float X
|
public float X
|
||||||
@@ -102,7 +102,7 @@ public class PlayerInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(8)]
|
[ProtoMember(8)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
@@ -287,7 +287,7 @@ public class TransformPlayerPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(2)]
|
[ProtoMember(2)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
@@ -399,7 +399,7 @@ public class TransformNpcPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(2)]
|
[ProtoMember(2)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ public class StressTestClient
|
|||||||
{
|
{
|
||||||
PlayerId = clientId,
|
PlayerId = clientId,
|
||||||
RotY = rotY,
|
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);
|
byte[] data = PacketSerializer.Serialize((ushort)PacketCode.TRANSFORM_PLAYER, pkt);
|
||||||
writer.Put(data);
|
writer.Put(data);
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ public class GameServer : ServerBase
|
|||||||
MaxHp = player.MaxHp,
|
MaxHp = player.MaxHp,
|
||||||
Mp = player.Mp,
|
Mp = player.Mp,
|
||||||
MaxMp = player.MaxMp,
|
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,
|
RotY = player.RotY,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class EchoPacket
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
[ProtoContract]
|
[ProtoContract]
|
||||||
public class Vector3
|
public class Position
|
||||||
{
|
{
|
||||||
[ProtoMember(1)]
|
[ProtoMember(1)]
|
||||||
public float X
|
public float X
|
||||||
@@ -102,7 +102,7 @@ public class PlayerInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(8)]
|
[ProtoMember(8)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
@@ -287,7 +287,7 @@ public class TransformPlayerPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(2)]
|
[ProtoMember(2)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
@@ -399,7 +399,7 @@ public class TransformNpcPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ProtoMember(2)]
|
[ProtoMember(2)]
|
||||||
public Vector3 Position
|
public Position Position
|
||||||
{
|
{
|
||||||
get;
|
get;
|
||||||
set;
|
set;
|
||||||
|
|||||||
Reference in New Issue
Block a user