92 lines
1.1 KiB
C#
92 lines
1.1 KiB
C#
namespace MMOserver.Game;
|
|
|
|
public class Player
|
|
{
|
|
public int HashKey
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int PlayerId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public string Nickname
|
|
{
|
|
get;
|
|
set;
|
|
} = string.Empty;
|
|
|
|
public int Level
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int Hp
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int MaxHp
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int Mp
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int MaxMp
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
// 위치/방향 (클라이언트 패킷과 동일하게 float)
|
|
public float PosX
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public float PosY
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public float PosZ
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public float RotY
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
// 현재 위치한 맵 ID
|
|
public int CurrentMapId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
// 레이드 입장 전 이전 맵 ID (레이드 종료 후 복귀용, 서버 캐싱)
|
|
public int PreviousMapId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|