Extends
Members
# fields
Fields Object
Properties:
Name | Type | Description |
---|---|---|
player_id |
UByteType
|
Player's id |
fog_blue |
UByteType
|
Fog blue color |
fog_green |
UByteType
|
Fog green color |
fog_red |
UByteType
|
Fog red color |
team_1_blue |
UByteType
|
Team 1 blue color |
team_1_green |
UByteType
|
Team 1 green color |
team_1_red |
UByteType
|
Team 1 red color |
team_2_blue |
UByteType
|
Team 2 blue color |
team_2_green |
UByteType
|
Team 2 green color |
team_2_red |
UByteType
|
Team 2 red color |
team_1_name |
StringType
|
Team 1 name with max length of 10 |
team_2_name |
StringType
|
Team 2 name with max length of 10 |
gamemode_id |
UByteType
|
Gamemode id, 0 for ctf and 1 for tc |
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: