Table of Contents

Class BeltPathLane

Namespace
Root
Assembly
Game.Content.Features.dll
public class BeltPathLane : IItemLane, IItemProvider, IUpdatableItemLane, IHookableItemReceiver, IItemReceiver
Inheritance
object
BeltPathLane
Implements
Extension Methods

Constructors

BeltPathLane(IBeltSpeed, BeltPathLaneState, IItemReceiver)

public BeltPathLane(IBeltSpeed beltSpeed, BeltPathLaneState state, IItemReceiver next = null)

Parameters

beltSpeed IBeltSpeed
state BeltPathLaneState
next IItemReceiver

Fields

State

public readonly BeltPathLaneState State

Field Value

BeltPathLaneState

Properties

AcceptHook

public AcceptHookDelegate AcceptHook { get; set; }

Property Value

AcceptHookDelegate

Duration_T

public Ticks Duration_T { get; }

Property Value

Ticks

FreeStepsAtTheEnd

public Steps FreeStepsAtTheEnd { get; }

Property Value

Steps

HasItem

public bool HasItem { get; }

Property Value

bool

ItemCount

public int ItemCount { get; }

Property Value

int

Length_S

public Steps Length_S { get; }

Property Value

Steps

MaxStep_S

public Steps MaxStep_S { get; }

Property Value

Steps

NextLane

public IItemReceiver NextLane { get; set; }

Property Value

IItemReceiver

PostAcceptHook

public PostAcceptHookDelegate PostAcceptHook { get; set; }

Property Value

PostAcceptHookDelegate

PreAcceptHook

public PreAcceptHookDelegate PreAcceptHook { get; set; }

Property Value

PreAcceptHookDelegate

SlotLength_S

public Steps SlotLength_S { get; }

Property Value

Steps

Slots

public IReadOnlyList<BeltSlotState> Slots { get; }

Property Value

IReadOnlyList<BeltSlotState>

StepsPerTick_S

public StepRate StepsPerTick_S { get; }

Property Value

StepRate

Methods

CanAcceptItem(IBeltItem)

public bool CanAcceptItem(IBeltItem itemToTransfer)

Parameters

itemToTransfer IBeltItem

Returns

bool

Clear()

public void Clear()

GetItem(int)

public IBeltItem GetItem(int index)

Parameters

index int

Returns

IBeltItem

GetTotalItemProgressAt(int)

public Steps GetTotalItemProgressAt(int slotIndex)

Parameters

slotIndex int

Returns

Steps

HandOverItem(IBeltItem, Ticks)

public void HandOverItem(IBeltItem itemToTransfer, Ticks remainingTicks)

Parameters

itemToTransfer IBeltItem
remainingTicks Ticks

RemoveItemAt(int)

public void RemoveItemAt(int slotIndex)

Parameters

slotIndex int

Update(Ticks)

public void Update(Ticks delta_T)

Parameters

delta_T Ticks