mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
21 lines
623 B
C#
21 lines
623 B
C#
using EggLink.DanhengServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Player
|
|
{
|
|
public class PacketStaminaInfoScNotify : BasePacket
|
|
{
|
|
public PacketStaminaInfoScNotify(PlayerInstance player) : base(CmdIds.StaminaInfoScNotify)
|
|
{
|
|
var proto = new StaminaInfoScNotify()
|
|
{
|
|
Stamina = (uint)player.Data.Stamina,
|
|
ReserveStamina = (uint)player.Data.StaminaReserve,
|
|
NextRecoverTime = player.Data.NextStaminaRecover,
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
}
|
|
}
|