Struct WritablePredictedTrain.ProtectedList<T>
- Namespace
- Game.Content.Features.Trains.Predictions
- Assembly
- Game.Content.Features.dll
public readonly struct WritablePredictedTrain.ProtectedList<T>
Type Parameters
T
- Extension Methods
Constructors
ProtectedList(TrainPredictionWriteHandle, IList<T>)
public ProtectedList(TrainPredictionWriteHandle handle, IList<T> list)
Parameters
handleTrainPredictionWriteHandlelistIList<T>
Properties
Count
public int Count { get; }
Property Value
- int
this[Index]
public T this[Index index] { get; set; }
Parameters
indexIndex
Property Value
- T
Methods
Equals(ProtectedList<T>)
public bool Equals(WritablePredictedTrain.ProtectedList<T> other)
Parameters
otherWritablePredictedTrain.ProtectedList<T>
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Pop()
public T Pop()
Returns
- T
Push(T)
public void Push(T prediction)
Parameters
predictionT