mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
20 lines
620 B
C#
20 lines
620 B
C#
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.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);
|
|
}
|
|
} |