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

Class IS_RES

source code

RESult (qualify or confirmed finish)

Instance Methods [hide private]
 
__init__(self, ReqI=0, PLID=0, UName='', PName='', Plate='', CName='', TTime=0, BTime=0, NumStops=0, Confirm=0, LapsDone=0, Flags=0, ResultNum=0, NumRes=0, PSeconds=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, UName='', PName='', Plate='', CName='', TTime=0, BTime=0, NumStops=0, Confirm=0, LapsDone=0, Flags=0, ResultNum=0, NumRes=0, PSeconds=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - 0 unless this is a reply to a TINY_RES request
  • PLID - player's unique id (0 = player left before result was sent)
  • UName - username
  • PName - nickname
  • Plate - number plate - NO ZERO AT END!
  • CName - skin prefix
  • TTime - race time (ms)
  • BTime - best lap (ms)
  • NumStops - number of pit stops
  • Confirm - confirmation flags CONF_
  • LapsDone - laps completed
  • Flags - player flags from PIF_
  • ResultNum - finish or qualify pos (0 = win / 255 = not added to table)
  • NumRes - total number of results (qualify doesn't always add a new one)
  • PSeconds - penalty time in seconds (already included in race time)

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.