Class TNpcReplyServerPacket

Unit

Declaration

type TNpcReplyServerPacket = class(TInterfacedObject, IPacket, INpcReplyServerPacket)

Description

Nearby NPC hit by a player

Hierarchy

Overview

Methods

Public function GetByteSize: Cardinal;
Public function GetPlayerId: Cardinal;
Public procedure SetPlayerId(PlayerId: Cardinal);
Public function GetPlayerDirection: TDirection;
Public procedure SetPlayerDirection(PlayerDirection: TDirection);
Public function GetNpcIndex: Cardinal;
Public procedure SetNpcIndex(NpcIndex: Cardinal);
Public function GetDamage: Cardinal;
Public procedure SetDamage(Damage: Cardinal);
Public function GetHpPercentage: Cardinal;
Public procedure SetHpPercentage(HpPercentage: Cardinal);
Public function GetKillStealProtection: TOptional<TNpcKillStealProtectionState>;
Public procedure SetKillStealProtection(KillStealProtection: TOptional<TNpcKillStealProtectionState>);
Public function Family: TPacketFamily;
Public function Action: TPacketAction;
Public procedure Serialize(Writer: TEoWriter);
Public class function PacketFamily: TPacketFamily;
Public class function PacketAction: TPacketAction;
Public class function Deserialize(Reader: TEoReader): TNpcReplyServerPacket;

Properties

Public property ByteSize: Cardinal read GetByteSize;
Public property PlayerId: Cardinal read GetPlayerId write SetPlayerId;
Public property PlayerDirection: TDirection read GetPlayerDirection write SetPlayerDirection;
Public property NpcIndex: Cardinal read GetNpcIndex write SetNpcIndex;
Public property Damage: Cardinal read GetDamage write SetDamage;
Public property HpPercentage: Cardinal read GetHpPercentage write SetHpPercentage;
Public property KillStealProtection: TOptional<TNpcKillStealProtectionState> read GetKillStealProtection write SetKillStealProtection;

Description

Methods

Public function GetByteSize: Cardinal;

This item has no description.

Public function GetPlayerId: Cardinal;

This item has no description.

Public procedure SetPlayerId(PlayerId: Cardinal);

This item has no description.

Public function GetPlayerDirection: TDirection;

This item has no description.

Public procedure SetPlayerDirection(PlayerDirection: TDirection);

This item has no description.

Public function GetNpcIndex: Cardinal;

This item has no description.

Public procedure SetNpcIndex(NpcIndex: Cardinal);

This item has no description.

Public function GetDamage: Cardinal;

This item has no description.

Public procedure SetDamage(Damage: Cardinal);

This item has no description.

Public function GetHpPercentage: Cardinal;

This item has no description.

Public procedure SetHpPercentage(HpPercentage: Cardinal);

This item has no description.

Public function GetKillStealProtection: TOptional<TNpcKillStealProtectionState>;

This item has no description.

Public procedure SetKillStealProtection(KillStealProtection: TOptional<TNpcKillStealProtectionState>);

This item has no description.

Public function Family: TPacketFamily;

Returns the packet family associated with this packet.

Returns

The packet family associated with this packet

Public function Action: TPacketAction;

Returns the packet action associated with this packet.

Returns

The packet action associated with this packet

Public procedure Serialize(Writer: TEoWriter);

Serializes this TNpcReplyServerPacket object to the provided TEoWriter.

Parameters
Writer
The writer that this object will be serialized to
Public class function PacketFamily: TPacketFamily;

Returns the packet family associated with this packet.

Returns

The packet family associated with this packet

Public class function PacketAction: TPacketAction;

Returns the packet action associated with this packet.

Returns

The packet action associated with this packet

Public class function Deserialize(Reader: TEoReader): TNpcReplyServerPacket;

Deserializes an instance of TNpcReplyServerPacket from the provided TEoReader.

Parameters
Reader
The reader that the object will be deserialized from
Returns

The deserialized object

Properties

Public property ByteSize: Cardinal read GetByteSize;

The size of the data that this object was deserialized from.

Note
0 if the instance was not created by the Deserialize method.

Public property PlayerId: Cardinal read GetPlayerId write SetPlayerId;

Note
Value range is 0-64008

Public property PlayerDirection: TDirection read GetPlayerDirection write SetPlayerDirection;

This item has no description.

Public property NpcIndex: Cardinal read GetNpcIndex write SetNpcIndex;

Note
Value range is 0-64008

Public property Damage: Cardinal read GetDamage write SetDamage;

Note
Value range is 0-16194276

Public property HpPercentage: Cardinal read GetHpPercentage write SetHpPercentage;

Note
Value range is 0-64008

Public property KillStealProtection: TOptional<TNpcKillStealProtectionState> read GetKillStealProtection write SetKillStealProtection;

This field should be sent to the attacker, but not nearby players


Generated by PasDoc 0.16.0-snapshot.