feat : GameServer 패킷 메시지 단위 분할 / 플레이어 정보 변환 기능 변경
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user