mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Enum ToSentence improvements * Network.EnqueueSend improvements * Improve SerializePhysicsData * GameMessage improvements * GameEventMessage updates * more initial sizes * Few more GameMessages * few more
19 lines
783 B
C#
19 lines
783 B
C#
using System;
|
|
using ACE.Entity.Enum;
|
|
|
|
namespace ACE.Server.Network.GameEvent.Events
|
|
{
|
|
public class GameEventAttackerNotification : GameEventMessage
|
|
{
|
|
public GameEventAttackerNotification(Session session, string defenderName, DamageType damageType, float percent, uint damage, bool criticalHit, AttackConditions attackConditions)
|
|
: base(GameEventType.AttackerNotification, GameMessageGroup.UIQueue, session, 76) // 76 is the max seen in retail pcaps
|
|
{
|
|
Writer.WriteString16L(defenderName);
|
|
Writer.Write((uint)damageType);
|
|
Writer.Write((double)percent);
|
|
Writer.Write(damage);
|
|
Writer.Write(Convert.ToUInt32(criticalHit));
|
|
Writer.Write((ulong)attackConditions);
|
|
}
|
|
}
|
|
}
|