Module pyinsim :: Class IS_CPP
[hide private]
[frames] | no frames]

Class IS_CPP

source code

Cam Pos Pack - Full camera packet (in car or SHIFT+U mode)

Instance Methods [hide private]
 
__init__(self, ReqI=0, Pos=[0, 0, 0], H=0, P=0, R=0, ViewPLID=0, InGameCam=0, FOV=0.0, Time=0, Flags=0)
Initialise the packet.
source code
string
pack(self)
Pack the packet values into a binary formatted string.
source code
 
unpack(self, data)
Unpack the packet data from a binary formatted string.
source code
Method Details [hide private]

__init__(self, ReqI=0, Pos=[0, 0, 0], H=0, P=0, R=0, ViewPLID=0, InGameCam=0, FOV=0.0, Time=0, Flags=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - instruction : 0 / or reply : ReqI as received in the TINY_SCP
  • Pos - Position vector
  • H - heading - 0 points along Y axis
  • P - pitch - 0 means looking at horizon
  • R - roll - 0 means no roll
  • ViewPLID - Unique ID of viewed player (0 = none)
  • InGameCam - InGameCam (as reported in StatePack)
  • FOV - FOV in degrees
  • Time - Time to get there (0 means instant + reset)
  • Flags - state flags from ISS_

pack(self)

source code 

Pack the packet values into a binary formatted string.

Returns: string
A binary formatted string.

unpack(self, data)

source code 

Unpack the packet data from a binary formatted string.

Parameters:
  • data (string) - The packet data as a binary formatted string.