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

Class IS_STA

source code

STAte packet, sent whenever the data in the packet changes. To request this packet send a TINY with a ReqI of non-zero and a SubT of TINY_STA.

Instance Methods [hide private]
 
__init__(self, ReqI=0, ReplaySpeed=0.0, Flags=0, InGameCam=0, ViewPLID=0, NumP=0, NumConns=0, NumFinished=0, RaceInProg=0, QualMins=0, RaceLaps=0, Track='', Weather=0, Wind=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, ReplaySpeed=0.0, Flags=0, InGameCam=0, ViewPLID=0, NumP=0, NumConns=0, NumFinished=0, RaceInProg=0, QualMins=0, RaceLaps=0, Track='', Weather=0, Wind=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - ReqI if replying to a request packet
  • ReplaySpeed - 4-byte float - 1.0 is normal speed
  • Flags - ISS_ state flags
  • InGameCam - Which type of camera is selected
  • ViewPLID - Unique ID of viewed player (0 = none)
  • NumP - Number of players in race
  • NumConns - Number of connections including host
  • NumFinished - Number finished or qualified
  • RaceInProg - 0 - no race / 1 - race / 2 - qualifying
  • QualMins - Qualifing minutes
  • RaceLaps - see "RaceLaps" near the top of this document
  • Track - short name for track e.g. FE2R
  • Weather - options from WEA_
  • Wind - options from WND_

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.