feat : 존 기능 초기 커밋

This commit is contained in:
qornwh1
2026-04-03 01:38:36 +09:00
parent 5221261d1e
commit 17ba88e841
15 changed files with 486 additions and 96 deletions

View File

@@ -1,3 +1,4 @@
using MMOserver.Game.Engine;
using MMOserver.Packet;
namespace MMOserver.Game;
@@ -82,24 +83,11 @@ public class Player
set;
}
// 위치/방향 (클라이언트 패킷과 동일하게 float)
public float PosX
public Vector3 Position
{
get;
set;
}
public float PosY
{
get;
set;
}
public float PosZ
{
get;
set;
}
} = new Vector3(0, 0, 0);
public float RotY
{
@@ -121,6 +109,14 @@ public class Player
set;
}
// 현재 위치한 맵의 존 ID
public int CurrentZoneId
{
get;
set;
} = 0;
// 패킷용 전환
public PlayerInfo ToPlayerInfo()
{
return new PlayerInfo
@@ -132,7 +128,7 @@ public class Player
MaxHp = this.MaxHp,
Mp = this.Mp,
MaxMp = this.MaxMp,
Position = new Position { X = this.PosX, Y = this.PosY, Z = this.PosZ },
Position = new Position { X = this.Position.X, Y = this.Position.Y, Z = this.Position.Z },
RotY = this.RotY,
Experience = this.Experience,
NextExp = this.NextExp,