Table of Contents

Class SupplyCrate

Namespace
Uncreated.Warfare.FOBs.SupplyCrates
Assembly
Uncreated.Warfare.dll
public class SupplyCrate : RestockableBuildableFobEntity<SupplyCrateInfo>, IBuildableFobEntity, IFobEntity, ITransformObject, IDisposable
Inheritance
SupplyCrate
Implements
Inherited Members
Extension Methods

Constructors

SupplyCrate(SupplyCrateInfo, IBuildable, IServiceProvider, Team, SupplyCrateStack?, int, int, bool)

public SupplyCrate(SupplyCrateInfo info, IBuildable buildable, IServiceProvider serviceProvider, Team team, SupplyCrateStack? stack, int level, int index, bool enableAutoRestock = false)

Parameters

info SupplyCrateInfo
buildable IBuildable
serviceProvider IServiceProvider
team Team
stack SupplyCrateStack
level int
index int
enableAutoRestock bool

Properties

MaxSupplyCount

public float MaxSupplyCount { get; }

Property Value

float

Stack

public SupplyCrateStack Stack { get; set; }

Property Value

SupplyCrateStack

StackInfo

public StackedSupplyCrate StackInfo { get; set; }

Property Value

StackedSupplyCrate

SupplyCount

public float SupplyCount { get; set; }

Property Value

float

SupplyRadius

public float SupplyRadius { get; set; }

Property Value

float

Type

public SupplyType Type { get; }

Property Value

SupplyType

Methods

Dispose()

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

public override void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsWithinRadius(Vector3)

public bool IsWithinRadius(Vector3 point)

Parameters

point Vector3

Returns

bool