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.