C# Class CrewChiefV3.PCars.PCarsGameStateMapper

Inheritance: GameStateMapper
Afficher le fichier Open project: mrbelowski/r3e_crewchief_v3 Class Usage Examples

Méthodes publiques

Méthode Description
PCarsGameStateMapper ( ) : System
getParticipantDataForName ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, String name, int index ) : pCarsAPIParticipantStruct
getPlayerDataStruct ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, int viewedParticipantIndex ) : pCarsAPIParticipantStruct>.Tuple
mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
versionCheck ( Object memoryMappedFileStruct ) : void

Private Methods

Méthode Description
createOpponentData ( pCarsAPIParticipantStruct participantStruct, System.Boolean loadDriverName ) : OpponentData
getMean ( List data ) : float
getTyreCondition ( float percentWear ) : TyreCondition
mapToAeroDamageLevel ( float aeroDamage ) : DamageLevel
mapToEngineDamageLevel ( float engineDamage ) : DamageLevel
mapToFlagEnum ( uint highestFlagColour ) : FlagEnum
mapToPitWindow ( GameStateData currentGameState, uint pitSchedule, uint pitMode ) : PitWindow
mapToSessionPhase ( SessionType sessionType, uint sessionState, uint raceState, int numParticipants, System.Boolean leaderHasFinishedRace, SessionPhase previousSessionPhase, float sessionTimeRemaining, float sessionRunTime ) : SessionPhase
upateOpponentData ( OpponentData opponentData, int racePosition, int completedLaps, int sector, System.Boolean isInPits, float sessionRunningTime, float secondsSinceLastUpdate, float currentWorldPosition, float previousWorldPosition, float previousSpeed, float worldRecordLapTime, float distanceRoundTrack, System.Boolean isRaining, float trackTemp, float airTemp ) : void

Method Details

PCarsGameStateMapper() public méthode

public PCarsGameStateMapper ( ) : System
Résultat System

getParticipantDataForName() public static méthode

public static getParticipantDataForName ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, String name, int index ) : pCarsAPIParticipantStruct
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
name String
index int
Résultat pCarsAPIParticipantStruct

getPlayerDataStruct() public static méthode

public static getPlayerDataStruct ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, int viewedParticipantIndex ) : pCarsAPIParticipantStruct>.Tuple
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
viewedParticipantIndex int
Résultat pCarsAPIParticipantStruct>.Tuple

mapToGameStateData() public méthode

public mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
memoryMappedFileStruct Object
previousGameState CrewChiefV3.GameState.GameStateData
Résultat CrewChiefV3.GameState.GameStateData

mapToSessionType() public méthode

public mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
memoryMappedFileStruct Object
Résultat SessionType

setSpeechRecogniser() public méthode

public setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
speechRecogniser SpeechRecogniser
Résultat void

versionCheck() public méthode

public versionCheck ( Object memoryMappedFileStruct ) : void
memoryMappedFileStruct Object
Résultat void