C# Class TrafficManager.Custom.AI.CustomRoadAI

Inheritance: RoadBaseAI
Afficher le fichier Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Méthodes publiques

Свойство Type Description
InStartupPhase bool
currentLaneDensities uint[]
currentLaneSpeeds uint[]
currentLaneTrafficBuffer ushort[]
initDone bool
laneMeanSpeeds byte[]
simStartFrame uint

Méthodes publiques

Méthode Description
Awake ( ) : void
CustomNodeSimulationStep ( ushort nodeId, NetNode &data ) : void
CustomSegmentSimulationStep ( ushort segmentID, NetSegment &data ) : void
CustomSetTrafficLightState ( ushort nodeID, NetSegment &segmentData, uint frame, RoadBaseAI vehicleLightState, RoadBaseAI pedestrianLightState, bool vehicles, bool pedestrians ) : void
GetTrafficLightState ( ushort vehicleId, Vehicle &vehicleData, ushort nodeId, ushort fromSegmentId, ushort toSegmentId, NetSegment &segmentData, uint frame, RoadBaseAI &vehicleLightState, RoadBaseAI &pedestrianLightState ) : void
GetTrafficLightState ( ushort vehicleId, Vehicle &vehicleData, ushort nodeId, ushort fromSegmentId, ushort toSegmentId, NetSegment &segmentData, uint frame, RoadBaseAI &vehicleLightState, RoadBaseAI &pedestrianLightState, bool &vehicles, bool &pedestrians ) : void
OriginalSetTrafficLightState ( bool customCall, ushort nodeID, NetSegment &segmentData, uint frame, RoadBaseAI vehicleLightState, RoadBaseAI pedestrianLightState, bool vehicles, bool pedestrians ) : void
OriginalSimulationStep ( ushort nodeID, NetNode &data ) : void
OriginalSimulationStep ( ushort segmentID, NetSegment &data ) : void
Update ( ) : void

Private Methods

Méthode Description
AddTraffic ( uint laneID, ushort vehicleLength, ushort speed, bool realTraffic ) : void
GetCustomTrafficLightState ( ushort vehicleId, Vehicle &vehicleData, ushort nodeId, ushort fromSegmentId, ushort toSegmentId, RoadBaseAI &vehicleLightState, RoadBaseAI &pedestrianLightState, TrafficLightSimulation nodeSim = null ) : void
GetSegmentGeometry ( ushort segmentId ) : TrafficManager.Custom.Misc.SegmentGeometry
GetSegmentGeometry ( ushort segmentId, ushort nodeId ) : TrafficManager.Custom.Misc.SegmentGeometry
OnBeforeLoadData ( ) : void
OnLevelUnloading ( ) : void
resetTrafficStats ( ) : void

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

CustomNodeSimulationStep() public méthode

public CustomNodeSimulationStep ( ushort nodeId, NetNode &data ) : void
nodeId ushort
data NetNode
Résultat void

CustomSegmentSimulationStep() public méthode

public CustomSegmentSimulationStep ( ushort segmentID, NetSegment &data ) : void
segmentID ushort
data NetSegment
Résultat void

CustomSetTrafficLightState() public static méthode

public static CustomSetTrafficLightState ( ushort nodeID, NetSegment &segmentData, uint frame, RoadBaseAI vehicleLightState, RoadBaseAI pedestrianLightState, bool vehicles, bool pedestrians ) : void
nodeID ushort
segmentData NetSegment
frame uint
vehicleLightState RoadBaseAI
pedestrianLightState RoadBaseAI
vehicles bool
pedestrians bool
Résultat void

GetTrafficLightState() public static méthode

public static GetTrafficLightState ( ushort vehicleId, Vehicle &vehicleData, ushort nodeId, ushort fromSegmentId, ushort toSegmentId, NetSegment &segmentData, uint frame, RoadBaseAI &vehicleLightState, RoadBaseAI &pedestrianLightState ) : void
vehicleId ushort
vehicleData Vehicle
nodeId ushort
fromSegmentId ushort
toSegmentId ushort
segmentData NetSegment
frame uint
vehicleLightState RoadBaseAI
pedestrianLightState RoadBaseAI
Résultat void

GetTrafficLightState() public static méthode

public static GetTrafficLightState ( ushort vehicleId, Vehicle &vehicleData, ushort nodeId, ushort fromSegmentId, ushort toSegmentId, NetSegment &segmentData, uint frame, RoadBaseAI &vehicleLightState, RoadBaseAI &pedestrianLightState, bool &vehicles, bool &pedestrians ) : void
vehicleId ushort
vehicleData Vehicle
nodeId ushort
fromSegmentId ushort
toSegmentId ushort
segmentData NetSegment
frame uint
vehicleLightState RoadBaseAI
pedestrianLightState RoadBaseAI
vehicles bool
pedestrians bool
Résultat void

OriginalSetTrafficLightState() public static méthode

public static OriginalSetTrafficLightState ( bool customCall, ushort nodeID, NetSegment &segmentData, uint frame, RoadBaseAI vehicleLightState, RoadBaseAI pedestrianLightState, bool vehicles, bool pedestrians ) : void
customCall bool
nodeID ushort
segmentData NetSegment
frame uint
vehicleLightState RoadBaseAI
pedestrianLightState RoadBaseAI
vehicles bool
pedestrians bool
Résultat void

OriginalSimulationStep() public méthode

public OriginalSimulationStep ( ushort nodeID, NetNode &data ) : void
nodeID ushort
data NetNode
Résultat void

OriginalSimulationStep() public méthode

public OriginalSimulationStep ( ushort segmentID, NetSegment &data ) : void
segmentID ushort
data NetSegment
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

InStartupPhase public_oe static_oe property

public static bool InStartupPhase
Résultat bool

currentLaneDensities public_oe static_oe property

public static uint[] currentLaneDensities
Résultat uint[]

currentLaneSpeeds public_oe static_oe property

public static uint[] currentLaneSpeeds
Résultat uint[]

currentLaneTrafficBuffer public_oe static_oe property

public static ushort[] currentLaneTrafficBuffer
Résultat ushort[]

initDone public_oe static_oe property

public static bool initDone
Résultat bool

laneMeanSpeeds public_oe static_oe property

public static byte[] laneMeanSpeeds
Résultat byte[]

simStartFrame public_oe static_oe property

public static uint simStartFrame
Résultat uint