mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 06:44:41 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using Google.Protobuf.Collections;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
using KianaBH.Util.Extensions;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Battle;
|
||||
|
||||
public class PacketGetBuffEffectRsp : BasePacket
|
||||
{
|
||||
public PacketGetBuffEffectRsp(RepeatedField<uint> EffectIdList) : base(CmdIds.GetBuffEffectRsp)
|
||||
{
|
||||
var proto = new GetBuffEffectRsp
|
||||
{
|
||||
AuraEffectList = { EffectIdList },
|
||||
EffectList =
|
||||
{
|
||||
EffectIdList.Select(id => new BuffEffect
|
||||
{
|
||||
EffectId = id,
|
||||
EndTime = (uint)Extensions.GetUnixSec() + 3600,
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user