C# Class TrafficManager.State.Flags

显示文件 Open project: Katalyst6/CSL.TransitAddonMod Class Usage Examples

Public Properties

Property Type Description
lfr uint

Public Methods

Method Description
IsInitDone ( ) : bool
OnBeforeLoadData ( ) : void
applyAllFlags ( ) : void
applyLaneArrowFlags ( uint laneId ) : bool
applyNodeTrafficLightFlag ( ushort nodeId ) : void
clearHighwayLaneArrows ( ) : void
getEnterWhenBlockedAllowed ( ushort segmentId, bool startNode ) : bool
getHighwayLaneArrowFlags ( uint laneId ) : LaneArrows?
getLaneArrowFlags ( uint laneId ) : LaneArrows?
getLaneSpeedLimit ( uint laneId ) : ushort?
getStraightLaneChangingAllowed ( ushort segmentId, bool startNode ) : bool
getUTurnAllowed ( ushort segmentId, bool startNode ) : bool
mayHaveTrafficLight ( ushort nodeId ) : bool
removeHighwayLaneArrowFlags ( uint laneId ) : void
removeLaneArrowFlags ( uint laneId ) : void
resetTrafficLights ( bool all ) : void
setEnterWhenBlockedAllowed ( ushort segmentId, bool startNode, bool value ) : void
setHighwayLaneArrowFlags ( uint laneId, LaneArrows flags ) : void
setLaneAllowedVehicleTypes ( uint laneId, ExtVehicleType vehicleTypes ) : void
setLaneAllowedVehicleTypes ( ushort segmentId, uint laneIndex, uint laneId, ExtVehicleType vehicleTypes ) : void
setLaneArrowFlags ( uint laneId, LaneArrows flags ) : void
setLaneSpeedLimit ( uint laneId, ushort speedLimit ) : void
setLaneSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, ushort speedLimit ) : void
setLaneSpeedLimit ( ushort segmentId, uint laneIndex, ushort speedLimit ) : void
setNodeTrafficLight ( ushort nodeId, bool flag ) : void
setStraightLaneChangingAllowed ( ushort segmentId, bool startNode, bool value ) : void
setUTurnAllowed ( ushort segmentId, bool startNode, bool value ) : void
toggleLaneArrowFlags ( uint laneId, LaneArrows flags ) : bool

Private Methods

Method Description
OnLevelUnloading ( ) : void
getAllLaneAllowedVehicleTypes ( ) : ExtVehicleType>.Dictionary
getAllLaneSpeedLimits ( ) : ushort>.Dictionary
getSegmentNodeFlags ( ushort segmentId, bool startNode ) : Configuration.SegmentNodeFlags
isNodeTrafficLight ( ushort nodeId ) : bool?
mayHaveLaneArrows ( uint laneId ) : bool
removeHighwayLaneArrowFlagsAtSegment ( ushort segmentId ) : void
setSegmentNodeFlags ( ushort segmentId, bool startNode, Configuration flags ) : void

Method Details

IsInitDone() public static method

public static IsInitDone ( ) : bool
return bool

OnBeforeLoadData() public static method

public static OnBeforeLoadData ( ) : void
return void

applyAllFlags() public static method

public static applyAllFlags ( ) : void
return void

applyLaneArrowFlags() public static method

public static applyLaneArrowFlags ( uint laneId ) : bool
laneId uint
return bool

applyNodeTrafficLightFlag() public static method

public static applyNodeTrafficLightFlag ( ushort nodeId ) : void
nodeId ushort
return void

clearHighwayLaneArrows() public static method

public static clearHighwayLaneArrows ( ) : void
return void

getEnterWhenBlockedAllowed() public static method

public static getEnterWhenBlockedAllowed ( ushort segmentId, bool startNode ) : bool
segmentId ushort
startNode bool
return bool

getHighwayLaneArrowFlags() public static method

public static getHighwayLaneArrowFlags ( uint laneId ) : LaneArrows?
laneId uint
return LaneArrows?

getLaneArrowFlags() public static method

public static getLaneArrowFlags ( uint laneId ) : LaneArrows?
laneId uint
return LaneArrows?

getLaneSpeedLimit() public static method

public static getLaneSpeedLimit ( uint laneId ) : ushort?
laneId uint
return ushort?

getStraightLaneChangingAllowed() public static method

public static getStraightLaneChangingAllowed ( ushort segmentId, bool startNode ) : bool
segmentId ushort
startNode bool
return bool

getUTurnAllowed() public static method

public static getUTurnAllowed ( ushort segmentId, bool startNode ) : bool
segmentId ushort
startNode bool
return bool

mayHaveTrafficLight() public static method

public static mayHaveTrafficLight ( ushort nodeId ) : bool
nodeId ushort
return bool

removeHighwayLaneArrowFlags() public static method

public static removeHighwayLaneArrowFlags ( uint laneId ) : void
laneId uint
return void

removeLaneArrowFlags() public static method

public static removeLaneArrowFlags ( uint laneId ) : void
laneId uint
return void

resetTrafficLights() public static method

public static resetTrafficLights ( bool all ) : void
all bool
return void

setEnterWhenBlockedAllowed() public static method

public static setEnterWhenBlockedAllowed ( ushort segmentId, bool startNode, bool value ) : void
segmentId ushort
startNode bool
value bool
return void

setHighwayLaneArrowFlags() public static method

public static setHighwayLaneArrowFlags ( uint laneId, LaneArrows flags ) : void
laneId uint
flags LaneArrows
return void

setLaneAllowedVehicleTypes() public static method

public static setLaneAllowedVehicleTypes ( uint laneId, ExtVehicleType vehicleTypes ) : void
laneId uint
vehicleTypes ExtVehicleType
return void

setLaneAllowedVehicleTypes() public static method

public static setLaneAllowedVehicleTypes ( ushort segmentId, uint laneIndex, uint laneId, ExtVehicleType vehicleTypes ) : void
segmentId ushort
laneIndex uint
laneId uint
vehicleTypes ExtVehicleType
return void

setLaneArrowFlags() public static method

public static setLaneArrowFlags ( uint laneId, LaneArrows flags ) : void
laneId uint
flags LaneArrows
return void

setLaneSpeedLimit() public static method

public static setLaneSpeedLimit ( uint laneId, ushort speedLimit ) : void
laneId uint
speedLimit ushort
return void

setLaneSpeedLimit() public static method

public static setLaneSpeedLimit ( ushort segmentId, uint laneIndex, uint laneId, ushort speedLimit ) : void
segmentId ushort
laneIndex uint
laneId uint
speedLimit ushort
return void

setLaneSpeedLimit() public static method

public static setLaneSpeedLimit ( ushort segmentId, uint laneIndex, ushort speedLimit ) : void
segmentId ushort
laneIndex uint
speedLimit ushort
return void

setNodeTrafficLight() public static method

public static setNodeTrafficLight ( ushort nodeId, bool flag ) : void
nodeId ushort
flag bool
return void

setStraightLaneChangingAllowed() public static method

public static setStraightLaneChangingAllowed ( ushort segmentId, bool startNode, bool value ) : void
segmentId ushort
startNode bool
value bool
return void

setUTurnAllowed() public static method

public static setUTurnAllowed ( ushort segmentId, bool startNode, bool value ) : void
segmentId ushort
startNode bool
value bool
return void

toggleLaneArrowFlags() public static method

public static toggleLaneArrowFlags ( uint laneId, LaneArrows flags ) : bool
laneId uint
flags LaneArrows
return bool

Property Details

lfr public_oe static_oe property

public static uint lfr
return uint