Versions in this module Expand all Collapse all v0 v0.0.1 May 17, 2021 Changes in this version + func ReadGraphics(graphics *ACCGraphics) error + func ReadPhysics(physics *ACCPhysics) error + func ReadStatic(static *ACCStatic) error + type ACCEventPublisher struct + func NewEventPublisher() ACCEventPublisher + func (publisher *ACCEventPublisher) AddLaptimeSubscription(key string, handleFunc func(LapTimeUpdate)) error + func (publisher *ACCEventPublisher) AddSectortimeSubscription(key string, handleFunc func(SectorTimeUpdate)) error + func (publisher *ACCEventPublisher) AddTrackStatusSubscription(key string, handleFunc func(TrackUpdate)) error + func (publisher *ACCEventPublisher) DeleteLaptimeSubscription(key string) error + func (publisher *ACCEventPublisher) DeleteSectortimeSubscription(key string) error + func (publisher *ACCEventPublisher) DeleteTrackStatusSubscription(key string) error + func (publisher *ACCEventPublisher) Start(gTimer int) + func (publisher *ACCEventPublisher) Stop() + type ACCGraphics struct + ABS int32 + ActiveCars int32 + BestTime [15]uint16 + CarCoordinates [60][3]float32 + CarId [60]int32 + CompletedLaps int32 + CurrentSectorIndex int32 + CurrentTime [15]uint16 + DistanceTraveled float32 + DriverStintTimeLeft int32 + DriverStintTotalTimeLeft int32 + EngineMap int32 + ExhaustTemperature float32 + Flag int32 + FlashingLights int32 + FuelXLap int32 + IBestTime int32 + ICurrentTime int32 + ILastTime int32 + IdealLineOn int32 + IsInPit int32 + IsInPitLane int32 + IsSetupMenuVisible int32 + LastSectorTime int32 + LastTime [15]uint16 + LightStage int32 + MainDisplayIndex int32 + MandatoryPitDone int32 + NormalizedCarPosition float32 + NumberOfLaps int32 + PacketId int32 + PenaltyShortCut int32 + PenaltyTime float32 + PlayerCarId int32 + Position int32 + RainLights int32 + RainTyres int32 + ReplayTimeMultiplier float32 + SecondaryDisplayIndex int32 + SessionTimeLeft float32 + SessionType int32 + Split [15]uint16 + Status int32 + SurfaceGrip float32 + TC int32 + TCCut int32 + TyreCompound [33]uint16 + WindDirection float32 + WindSpeed float32 + WiperLevel int32 + type ACCPhysics struct + ABS float32 + ABSInAction int32 + AccG [3]float32 + AirDensity float32 + AirTemp float32 + AutoShifterOn int32 + Ballast float32 + Brake float32 + BrakeBias float32 + BrakeTemp [4]float32 + CamberRAD [4]float32 + CarDamage [5]float32 + CgHeight float32 + Clutch float32 + CurrentMaxRPM int32 + DRS float32 + DRSAvailable int32 + DRSEnabled int32 + ERSHeatCharging int32 + ERSIsCharging int32 + ERSPower int32 + ERSRecoup int32 + EngineBrake int32 + FX [4]float32 + FY [4]float32 + FinalFF float32 + Fuel float32 + Gas float32 + Gear int32 + Heading float32 + IsAIControlled int32 + KERSCharge float32 + KERSCurrentKJ float32 + KERSInput float32 + LocalAngularVelocity [3]float32 + LocalVelocity [3]float32 + MZ [4]float32 + NumberOfTyresOut int32 + P2PActivations float32 + P2PStatus float32 + PacketId int32 + PerformanceMeter float32 + PitLimiterOn int32 + Pitch float32 + RPM int32 + RideHeight [2]float32 + RoadTemp float32 + Roll float32 + SlipAngle [4]float32 + SlipRatio [4]float32 + SpeedKmh float32 + SteerAngle float32 + SuspensionDamage [4]float32 + SuspensionTravel [4]float32 + TC float32 + TCInAction int32 + TurboBoost float32 + TyreContactHeading [4][3]float32 + TyreContactNormal [4][3]float32 + TyreContactPoint [4][3]float32 + TyreCoreTem [4]float32 + TyreDirtyLevel [4]float32 + TyreTemp [4]float32 + TyreTempI [4]float32 + TyreTempM [4]float32 + TyreTempO [4]float32 + TyreWear [4]float32 + Velocity [3]float32 + WheelAngularSpeed [4]float32 + WheelLoad [4]float32 + WheelPressure [4]float32 + WheelSlip [4]float32 + type ACCStatic struct + ACVersion [15]uint16 + AidAllowTyreBlankets int32 + AidAutoBlip int32 + AidAutoClutch int32 + AidFuelRate int32 + AidMechanicalDamage float32 + AidStability float32 + AidTireRate int32 + CarModel [33]uint16 + CarSkin [33]uint16 + Deprecated1 float32 + Deprecated2 float32 + ERSMaxJ float32 + ERSPowerControllerCount int32 + EngineBrakeSettingsCount int32 + HasDRS int32 + HasERS int32 + HasExtraLap int32 + HasKERS int32 + IsOnline int32 + IsTimedRace int32 + KERSMaxJ float32 + MaxFuel float32 + MaxPower float32 + MaxRPM int32 + MaxSuspensionTravel [4]float32 + MaxTorque float32 + MaxTurboBoost float32 + NumCars int32 + NumberOfSessions int32 + PenaltiesEnabled int32 + PitWindowEnd int32 + PitWindowStart int32 + PlayerName [33]uint16 + PlayerNickname [33]uint16 + PlayerSurName [33]uint16 + ReversedGridPosition int32 + SMVersion [15]uint16 + SectorCount int32 + Track [33]uint16 + TrackConfiguration [33]uint16 + TrackSplineLength float32 + TyreRadius float32 + type LapTimeUpdate struct + BestTime int32 + Completed int32 + Compound string + LastTime int32 + type SectorTimeUpdate struct + Best int32 + Lap int32 + LastSector int32 + SectorIndex int32 + type TrackUpdate struct + Flag int32 + Pit int32 + PitLane int32