프로퍼티 | 타입 | 설명 | |
---|---|---|---|
InStartupPhase | bool | ||
currentLaneDensities | uint[] | ||
currentLaneSpeeds | uint[] | ||
currentLaneTrafficBuffer | ushort[] | ||
initDone | bool | ||
laneMeanSpeeds | byte[] | ||
simStartFrame | uint |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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, |
||
GetSegmentGeometry ( ushort segmentId ) : TrafficManager.Custom.Misc.SegmentGeometry | ||
GetSegmentGeometry ( ushort segmentId, ushort nodeId ) : TrafficManager.Custom.Misc.SegmentGeometry | ||
OnBeforeLoadData ( ) : void | ||
OnLevelUnloading ( ) : void | ||
resetTrafficStats ( ) : void |
public CustomNodeSimulationStep ( ushort nodeId, NetNode &data ) : void | ||
nodeId | ushort | |
data | NetNode | |
리턴 | void |
public CustomSegmentSimulationStep ( ushort segmentID, NetSegment &data ) : void | ||
segmentID | ushort | |
data | NetSegment | |
리턴 | void |
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 | |
리턴 | void |
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 | |
리턴 | void |
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 | |
리턴 | void |
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 | |
리턴 | void |
public OriginalSimulationStep ( ushort nodeID, NetNode &data ) : void | ||
nodeID | ushort | |
data | NetNode | |
리턴 | void |
public OriginalSimulationStep ( ushort segmentID, NetSegment &data ) : void | ||
segmentID | ushort | |
data | NetSegment | |
리턴 | void |
public static ushort[] currentLaneTrafficBuffer | ||
리턴 | ushort[] |