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

Class InstanciateObject

source code


Server message sent to client when an object has to be added to scene.

Message is typically sent when player realease an object from his inventory. 'B' + 'B%ds' : [lenName ObjectName]

Instance Methods
 
__init__(self, objname='', position=[0.0, 0.0, 0.0]) source code
Byte Array. 'B' + 'fffB%ds'
Encode(self, objname='', position=[0.0, 0.0, 0.0])
Returns: the encoded data
source code
Int, []
Decode(self, data)
Returns: nb_processed_bytes, []
source code
 
__repr__(self) source code
Method Details

__init__(self, objname='', position=[0.0, 0.0, 0.0])
(Constructor)

source code 
Overrides: ServerMessage.__init__

Encode(self, objname='', position=[0.0, 0.0, 0.0])

source code 
Parameters:
  • objname () -
  • position () -
Returns: Byte Array. 'B' + 'fffB%ds'
the encoded data

Decode(self, data)

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

__repr__(self)
(Representation operator)

source code 
Overrides: ServerMessage.__repr__