C# Класс CrewChiefV3.PCars.PCarsGameStateMapper

Наследование: GameStateMapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

PCarsGameStateMapper() публичный Метод

public PCarsGameStateMapper ( ) : System
Результат System

getParticipantDataForName() публичный статический Метод

public static getParticipantDataForName ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, String name, int index ) : pCarsAPIParticipantStruct
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
name String
index int
Результат pCarsAPIParticipantStruct

getPlayerDataStruct() публичный статический Метод

public static getPlayerDataStruct ( pCarsAPIParticipantStruct pCarsAPIParticipantStructArray, int viewedParticipantIndex ) : pCarsAPIParticipantStruct>.Tuple
pCarsAPIParticipantStructArray pCarsAPIParticipantStruct
viewedParticipantIndex int
Результат pCarsAPIParticipantStruct>.Tuple

mapToGameStateData() публичный Метод

public mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
memoryMappedFileStruct Object
previousGameState CrewChiefV3.GameState.GameStateData
Результат CrewChiefV3.GameState.GameStateData

mapToSessionType() публичный Метод

public mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
memoryMappedFileStruct Object
Результат SessionType

setSpeechRecogniser() публичный Метод

public setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
speechRecogniser SpeechRecogniser
Результат void

versionCheck() публичный Метод

public versionCheck ( Object memoryMappedFileStruct ) : void
memoryMappedFileStruct Object
Результат void