Table of Contents

Struct TrainSimulationData

Namespace
Game.Core.Trains
Assembly
Game.Content.dll
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

firstWagon WagonNavigationData
color RailColor
wagonCount int
otherWagonsState WagonStateId
initialTrainProgress float
allocator Allocator
state TrainSimulationState

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

RailColor

IsStopped

public bool IsStopped

Field Value

bool

MaxSpeedAhead

public float MaxSpeedAhead

Field Value

float

State

public TrainSimulationState State

Field Value

TrainSimulationState

StopTime

public Ticks StopTime

Field Value

Ticks

TargetSpeedCalculated

public bool TargetSpeedCalculated

Field Value

bool

TargetSpeedChunkUsedOnlyForDebugging

public GlobalChunkCoordinate? TargetSpeedChunkUsedOnlyForDebugging

Field Value

GlobalChunkCoordinate?

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

WagonNavigationData

Signature

public TrainSignature Signature { get; }

Property Value

TrainSignature

Tail

public WagonNavigationData Tail { get; }

Property Value

WagonNavigationData

Methods

Advance(in WagonNavigationData)

public void Advance(in WagonNavigationData head)

Parameters

head WagonNavigationData

DeepCopy(Allocator)

public TrainSimulationData DeepCopy(Allocator allocator)

Parameters

allocator Allocator

Returns

TrainSimulationData

Dispose()

public void Dispose()