Module bzMessage :: Class StoreAvatar
[frames] | no frames]

Class StoreAvatar

source code


Client message sent to server when player choose an avatar.

Message is sent when player choose an avatar. 'B' + 'B' : [avatar_number]

Instance Methods
 
__init__(self, id_avatar=0) source code
Byte Array. 'B' + 'B'
Encode(self, id_avatar=0)
Returns: the encoded data
source code
Int, [Int]
Decode(self, data)
Returns: nb_processed_bytes, [avatar_id]
source code
 
__repr__(self) source code
Method Details

__init__(self, id_avatar=0)
(Constructor)

source code 
Overrides: ClientMessage.__init__

Encode(self, id_avatar=0)

source code 
Parameters:
  • id_avatar (Int) - The number of the chosen avatar
Returns: Byte Array. 'B' + 'B'
the encoded data

Decode(self, data)

source code 
Parameters:
  • data (Byte Array: 'B' + 'B') - The encoded data
Returns: Int, [Int]
nb_processed_bytes, [avatar_id]

__repr__(self)
(Representation operator)

source code 
Overrides: ClientMessage.__repr__