Struct TrainSimulationData
public struct TrainSimulationData
- Extension Methods
Constructors
TrainSimulationData(WagonNavigationData, RailColor, int, WagonStateId, float, Allocator, TrainSimulationState)
public TrainSimulationData(WagonNavigationData firstWagon, RailColor color, int wagonCount, WagonStateId otherWagonsState, float initialTrainProgress, Allocator allocator, TrainSimulationState state)
Parameters
firstWagonWagonNavigationDatacolorRailColorwagonCountintotherWagonsStateWagonStateIdinitialTrainProgressfloatallocatorAllocatorstateTrainSimulationState
Fields
Acceleration
public float Acceleration
Field Value
- float
ChunkProgress
public float ChunkProgress
Field Value
- float
ChunksUntilMaxSpeedShouldBeRespected
public float ChunksUntilMaxSpeedShouldBeRespected
Field Value
- float
Color
public RailColor Color
Field Value
IsStopped
public bool IsStopped
Field Value
- bool
MaxSpeedAhead
public float MaxSpeedAhead
Field Value
- float
State
public TrainSimulationState State
Field Value
StopTime
public Ticks StopTime
Field Value
TargetSpeedCalculated
public bool TargetSpeedCalculated
Field Value
- bool
TargetSpeedChunkUsedOnlyForDebugging
public GlobalChunkCoordinate? TargetSpeedChunkUsedOnlyForDebugging
Field Value
UpsideDown
public bool UpsideDown
Field Value
- bool
Velocity
public float Velocity
Field Value
- float
Wagons
public NativeArray<WagonNavigationData> Wagons
Field Value
- NativeArray<WagonNavigationData>
WasStoppedInCurrentChunk
public bool WasStoppedInCurrentChunk
Field Value
- bool
Properties
Head
public WagonNavigationData Head { get; }
Property Value
Signature
public TrainSignature Signature { get; }
Property Value
Tail
public WagonNavigationData Tail { get; }
Property Value
Methods
Advance(in WagonNavigationData)
public void Advance(in WagonNavigationData head)
Parameters
headWagonNavigationData
DeepCopy(Allocator)
public TrainSimulationData DeepCopy(Allocator allocator)
Parameters
allocatorAllocator
Returns
Dispose()
public void Dispose()