Table of Contents

Class TrainHashCalculatorOptimizedForSmallEmptyTrains

Namespace
Game.Content.Features.Trains.Predictions
Assembly
Game.Content.Features.dll
public class TrainHashCalculatorOptimizedForSmallEmptyTrains : ITrainHashCalculatorHeuristic
Inheritance
object
TrainHashCalculatorOptimizedForSmallEmptyTrains
Implements
Extension Methods

Constructors

TrainHashCalculatorOptimizedForSmallEmptyTrains(int)

public TrainHashCalculatorOptimizedForSmallEmptyTrains(int wagonTypesCount)

Parameters

wagonTypesCount int

Properties

HashesCanCollide

public bool HashesCanCollide { get; }

Property Value

bool

MaxTrainWagonLengthWithOptimizationEnabled

public int MaxTrainWagonLengthWithOptimizationEnabled { get; }

Property Value

int

NotOptimizedTrains

public int NotOptimizedTrains { get; }

Property Value

int

OptimizedTrains

public int OptimizedTrains { get; }

Property Value

int

Methods

TryCreateHash<TWagonTypeList, TCargoList>(RailColor, TWagonTypeList, TCargoList, bool, out uint)

public bool TryCreateHash<TWagonTypeList, TCargoList>(RailColor railColor, TWagonTypeList cargoType, TCargoList cargoContent, bool emptyTrain, out uint hash) where TWagonTypeList : IReadOnlyList<TrainWagonCargoTypeId> where TCargoList : IReadOnlyList<TrainCargoPrediction>

Parameters

railColor RailColor
cargoType TWagonTypeList
cargoContent TCargoList
emptyTrain bool
hash uint

Returns

bool

Type Parameters

TWagonTypeList
TCargoList