Represents a collection of players and information about them. Due to the way the frostbite protocol currently sends this info, it also provides a list of field names that are sent alongside the player list.
Parameters: |
|
---|
Transforms a python dictionary of the form {“fields”: [field_names], “players”: [[player_info_block1, player_info_block2]]} into a player collection.
Parameters: | dict – Dictionary |
---|---|
Returns: | PlayerCollection |
Alternative constructor to return a PlayerCollection from a list of words from a packet.
Parameters: | a – Array of words from a packet returning a player info block. |
---|---|
Returns: | PlayerCollection |
Return the list of field names.
Returns: | Array of field names. |
---|
Return the list of players’ info blocks.
Returns: | Array of arrays containing players’ info blocks |
---|
Returns a python dictionary of the form {“fields”: [field_names], “players”: [[player_info_block1, player_info_block2]]}
Returns: | dictionary |
---|
Helper method to return an array of words suitable for encoding this PlayerCollection into a packet.
Returns: | list of words. |
---|
Structure representing the basic state of a BF3 server.
Alternative constructor that returns a ServerState structure from a python dictionary.
Alternative constructor that returns a ServerState structure from a list of words from a Frostbite packet.
Helper method that returns a python dictionary containing the information in this structure.
Helper method that returns an array of words suitable for encoding in a Frostbite packet.