C# Class TrafficManager.Custom.AI.CustomCarAI

Inheritance: CarAI
Mostra file Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Properties

Property Type Description
MaxPriorityWaitTime int

Public Methods

Method Description
Awake ( ) : void
CustomCalculateSegmentPosition ( ushort vehicleId, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
CustomCalculateSegmentPositionPathFinder ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, uint laneId, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays, bool undergroundTarget ) : bool
TrafficManagerSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void

Lightweight simulation step method. This method is occasionally being called for different cars.

Private Methods

Method Description
CalcMaxSpeed ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, Vector3 pos, float maxSpeed, bool isRecklessDriver ) : float
IsRecklessDriver ( ushort vehicleId, Vehicle &vehicleData ) : bool
OnLevelUnloading ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

CustomCalculateSegmentPosition() public method

public CustomCalculateSegmentPosition ( ushort vehicleId, Vehicle &vehicleData, PathUnit nextPosition, PathUnit position, uint laneID, byte offset, PathUnit prevPos, uint prevLaneID, byte prevOffset, int index, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
vehicleId ushort
vehicleData Vehicle
nextPosition PathUnit
position PathUnit
laneID uint
offset byte
prevPos PathUnit
prevLaneID uint
prevOffset byte
index int
pos Vector3
dir Vector3
maxSpeed float
return void

CustomCalculateSegmentPositionPathFinder() public method

public CustomCalculateSegmentPositionPathFinder ( ushort vehicleId, Vehicle &vehicleData, PathUnit position, uint laneId, byte offset, Vector3 &pos, Vector3 &dir, float &maxSpeed ) : void
vehicleId ushort
vehicleData Vehicle
position PathUnit
laneId uint
offset byte
pos Vector3
dir Vector3
maxSpeed float
return void

CustomStartPathFind() public method

public CustomStartPathFind ( ushort vehicleID, Vehicle &vehicleData, Vector3 startPos, Vector3 endPos, bool startBothWays, bool endBothWays, bool undergroundTarget ) : bool
vehicleID ushort
vehicleData Vehicle
startPos Vector3
endPos Vector3
startBothWays bool
endBothWays bool
undergroundTarget bool
return bool

TrafficManagerSimulationStep() public method

Lightweight simulation step method. This method is occasionally being called for different cars.
public TrafficManagerSimulationStep ( ushort vehicleId, Vehicle &vehicleData, Vector3 physicsLodRefPos ) : void
vehicleId ushort
vehicleData Vehicle
physicsLodRefPos Vector3
return void

Property Details

MaxPriorityWaitTime public_oe static_oe property

public static int MaxPriorityWaitTime
return int