RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.packet.out.SendFont Class Reference

The OutgoingPacket that sends a font to a string in the client. More...

Inheritance diagram for com.runehive.net.packet.out.SendFont:
Collaboration diagram for com.runehive.net.packet.out.SendFont:

Public Member Functions

boolean encode (Player player)
 SendFont (int id, int font)
Public Member Functions inherited from com.runehive.net.packet.OutgoingPacket
void execute (Player player)
 OutgoingPacket (int opcode, int capacity)
 OutgoingPacket (int opcode, PacketType type)
 OutgoingPacket (int opcode, PacketType type, int size)

Private Attributes

final int font
final int id

Additional Inherited Members

Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket
final PacketBuilder builder

Detailed Description

The OutgoingPacket that sends a font to a string in the client.

Author
Daniel | Obey

Definition at line 14 of file SendFont.java.

Constructor & Destructor Documentation

◆ SendFont()

com.runehive.net.packet.out.SendFont.SendFont ( int id,
int font )

Definition at line 19 of file SendFont.java.

19 {
20 super(123, 6);
21 this.id = id;
22 this.font = font;
23 }

References font, and id.

Member Function Documentation

◆ encode()

boolean com.runehive.net.packet.out.SendFont.encode ( Player player)

Reimplemented from com.runehive.net.packet.OutgoingPacket.

Definition at line 26 of file SendFont.java.

26 {
27 builder.writeShort(id, ByteModification.ADD, ByteOrder.LE)
28 .writeInt(font);
29 return true;
30 }

References com.runehive.net.codec.ByteModification.ADD, com.runehive.net.packet.OutgoingPacket.builder, font, and com.runehive.net.codec.ByteOrder.LE.

Member Data Documentation

◆ font

final int com.runehive.net.packet.out.SendFont.font
private

Definition at line 17 of file SendFont.java.

Referenced by encode(), and SendFont().

◆ id

final int com.runehive.net.packet.out.SendFont.id
private

Definition at line 16 of file SendFont.java.

Referenced by SendFont().


The documentation for this class was generated from the following file: