Extends
Members
# fields
Fields Object
Properties:
Name | Type | Description |
---|---|---|
player_id |
UByteType
|
Player's id |
team |
ByteType
|
Team id |
weapon |
UByteType
|
Weapon id |
held_item |
UByteType
|
Which tool player is holding |
kills |
UInt32Type
|
Kill count |
block_blue |
UByteType
|
Player's block blue color |
block_green |
UByteType
|
Player's block green color |
block_red |
UByteType
|
Player's block red color |
name |
StringType
|
Player's name |
Methods
# getValue(Field) → {string}
Get a field's value
Parameters:
Name | Type | Description |
---|---|---|
Field |
string
|
Field's name |
- Overrides:
string
# organize(Game)
This function is used for packets organize infos inside game's class
Parameters:
Name | Type | Description |
---|---|---|
Game |
Game
|
Game Class |
- Overrides:
# parseInfos(Packet)
Read a packet and assign the values for fields.
Parameters:
Name | Type | Description |
---|---|---|
Packet |
Buffer
|
- Overrides:
# setValue(Field, Value)
Set a fields's value
Parameters:
Name | Type | Description |
---|---|---|
Field |
string
|
Field's name |
Value |
any
|
Field's value |
- Overrides: