C# Класс CrewChiefV3.RaceRoom.R3EGameStateMapper

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

Открытые свойства

Свойство Тип Описание
playerName String

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

Метод Описание
R3EGameStateMapper ( ) : System
getNameFromBytes ( byte name ) : String
isBehindWithinDistance ( float trackLength, float minDistance, float maxDistance, float playerTrackDistance, float opponentTrackDistance ) : System.Boolean
mapToGameStateData ( Object memoryMappedFileStruct, GameStateData previousGameState ) : GameStateData
mapToSessionType ( Object memoryMappedFileStruct ) : SessionType
setSpeechRecogniser ( SpeechRecogniser speechRecogniser ) : void
versionCheck ( Object memoryMappedFileStruct ) : void

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

Метод Описание
CheckIsCarRunning ( RaceRoomData shared ) : System.Boolean
createOpponentData ( DriverData participantStruct, String driverName, System.Boolean loadDriverName ) : OpponentData
getOvertakingAids ( RaceRoomShared shared, CarData carClassEnum, int lapsCompleted, SessionType sessionType ) : OvertakingAids
getRacePosition ( String driverName, int oldPosition, int newPosition, System.DateTime now ) : int
getTyreCondition ( float percentWear ) : TyreCondition
getTyreWearPercentage ( float wearLevel ) : float
mapToControlType ( int r3eControlType ) : ControlType
mapToPitWindow ( int r3ePitWindow ) : PitWindow
mapToSessionPhase ( SessionPhase lastSessionPhase, SessionType currentSessionType, float lastSessionRunningTime, float thisSessionRunningTime, int r3eSessionPhase, ControlType controlType, int previousLapsCompleted, int currentLapsCompleted, System.Boolean isCarRunning ) : SessionPhase
mapToTyreType ( int r3eTyreType ) : TyreType
upateOpponentData ( OpponentData opponentData, int racePosition, int unfilteredRacePosition, int completedLaps, int sector, float sectorTime, float completedLapTime, System.Boolean isInPits, System.Boolean lapIsValid, float sessionRunningTime, float secondsSinceLastUpdate, float currentWorldPosition, float previousWorldPosition, float distanceRoundTrack, int tire_type ) : void

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

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

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

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

public static getNameFromBytes ( byte name ) : String
name byte
Результат String

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

public isBehindWithinDistance ( float trackLength, float minDistance, float maxDistance, float playerTrackDistance, float opponentTrackDistance ) : System.Boolean
trackLength float
minDistance float
maxDistance float
playerTrackDistance float
opponentTrackDistance float
Результат System.Boolean

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

Описание свойств

playerName публичное статическое свойство

public static String playerName
Результат String