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

Class IS_RST

source code

Race STart

Instance Methods [hide private]
 
__init__(self, ReqI=0, RaceLaps=0, QualMins=0, NumP=0, Track='', Weather=0, Wind=0, Flags=0, NumNodes=0, Finish=0, Split1=0, Split2=0, Split3=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, RaceLaps=0, QualMins=0, NumP=0, Track='', Weather=0, Wind=0, Flags=0, NumNodes=0, Finish=0, Split1=0, Split2=0, Split3=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - 0 unless this is a reply to an TINY_RST request
  • RaceLaps - 0 if qualifying
  • QualMins - 0 if race
  • NumP - number of players in race
  • Track - short track name
  • Weather - weather
  • Wind - wind
  • Flags - race flags from HOSTF_
  • NumNodes - total number of nodes in the path
  • Finish - node index - finish line
  • Split1 - node index - split 1
  • Split2 - node index - split 2
  • Split3 - node index - split 3

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.