feat : GameServer 패킷 메시지 단위 분할 / 플레이어 정보 변환 기능 변경

This commit is contained in:
qornwh1
2026-03-30 14:29:02 +09:00
parent 2ebd0120ab
commit 530f32420d
14 changed files with 1620 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
using MMOserver.Packet;
namespace MMOserver.Game;
public class Player
@@ -119,4 +121,24 @@ public class Player
set;
}
public PlayerInfo ToPlayerInfo()
{
return new PlayerInfo
{
PlayerId = this.PlayerId,
Nickname = this.Nickname,
Level = this.Level,
Hp = this.Hp,
MaxHp = this.MaxHp,
Mp = this.Mp,
MaxMp = this.MaxMp,
Position = new Position { X = this.PosX, Y = this.PosY, Z = this.PosZ },
RotY = this.RotY,
Experience = this.Experience,
NextExp = this.NextExp,
AttackPower = this.AttackPower,
AttackRange = this.AttackRange,
SprintMultiplier = this.SprintMultiplier,
};
}
}