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

Class IS_FIN

source code

FINished race notification (not a final result - use IS_RES)

Instance Methods [hide private]
 
__init__(self, ReqI=0, PLID=0, TTime=0, BTime=0, NumStops=0, Confirm=0, LapsDone=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, PLID=0, TTime=0, BTime=0, NumStops=0, Confirm=0, LapsDone=0, Flags=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - 0
  • PLID - player's unique id (0 = player left before result was sent)
  • TTime - race time (ms)
  • BTime - best lap (ms)
  • NumStops - number of pit stops
  • Confirm - confirmation flags from CONF_
  • LapsDone - laps completed
  • Flags - player flags from PIF_

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.