Table of Contents

Class SupplyCrateStack

Namespace
Uncreated.Warfare.FOBs.Construction
Assembly
Uncreated.Warfare.dll
public class SupplyCrateStack : IDisposable
Inheritance
SupplyCrateStack
Implements
Inherited Members

Constructors

SupplyCrateStack(SupplyCrate)

public SupplyCrateStack(SupplyCrate firstCrate)

Parameters

firstCrate SupplyCrate

Properties

Asset

public ItemPlaceableAsset Asset { get; }

Property Value

ItemPlaceableAsset

Axis

The axis that is perpendicular with the stack's front/back.

public SnapAxis Axis { get; }

Property Value

SnapAxis

Collider

public BoxCollider Collider { get; }

Property Value

BoxCollider

ColliderObject

public GameObject ColliderObject { get; }

Property Value

GameObject

Crates

public IReadOnlyList<StackedSupplyCrate> Crates { get; }

Property Value

IReadOnlyList<StackedSupplyCrate>

HorizontalVector

public Vector3 HorizontalVector { get; }

Property Value

Vector3

Levels

public IReadOnlyList<IReadOnlyList<StackedSupplyCrate?>> Levels { get; }

Property Value

IReadOnlyList<IReadOnlyList<StackedSupplyCrate>>

MaxHeight

public int MaxHeight { get; }

Property Value

int

MaxWidth

public int MaxWidth { get; }

Property Value

int

Rotation

public Quaternion Rotation { get; }

Property Value

Quaternion

VerticalVector

public Vector3 VerticalVector { get; }

Property Value

Vector3

Methods

AddCrate(SupplyCrate, int, int)

public StackedSupplyCrate AddCrate(SupplyCrate supplyCrate, int level, int index)

Parameters

supplyCrate SupplyCrate
level int
index int

Returns

StackedSupplyCrate

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetPosition(int, int)

public Vector3 GetPosition(int level, int index)

Parameters

level int
index int

Returns

Vector3

RemoveCrate(StackedSupplyCrate)

public void RemoveCrate(StackedSupplyCrate crate)

Parameters

crate StackedSupplyCrate

TryGetNextCratePosition(out int, out int, out Vector3)

public bool TryGetNextCratePosition(out int level, out int index, out Vector3 position)

Parameters

level int
index int
position Vector3

Returns

bool