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
firstCrateSupplyCrate
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
HorizontalVector
public Vector3 HorizontalVector { get; }
Property Value
- Vector3
Levels
public IReadOnlyList<IReadOnlyList<StackedSupplyCrate?>> Levels { get; }
Property Value
MaxHeight
public int MaxHeight { get; }
Property Value
MaxWidth
public int MaxWidth { get; }
Property Value
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
supplyCrateSupplyCratelevelintindexint
Returns
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
Returns
- Vector3
RemoveCrate(StackedSupplyCrate)
public void RemoveCrate(StackedSupplyCrate crate)
Parameters
crateStackedSupplyCrate
TryGetNextCratePosition(out int, out int, out Vector3)
public bool TryGetNextCratePosition(out int level, out int index, out Vector3 position)