Table of Contents

Class NearbySupplyCrates

Namespace
Uncreated.Warfare.FOBs.SupplyCrates
Assembly
Uncreated.Warfare.dll
public class NearbySupplyCrates
Inheritance
NearbySupplyCrates
Inherited Members

Properties

AmmoCount

public float AmmoCount { get; }

Property Value

float

BuildCount

public float BuildCount { get; }

Property Value

float

NumberOfSupplyCrates

public float NumberOfSupplyCrates { get; }

Property Value

float

Methods

FindNearbyCrates(Vector3, CSteamID, FobManager)

public static NearbySupplyCrates FindNearbyCrates(Vector3 supplyPoint, CSteamID team, FobManager fobManager)

Parameters

supplyPoint Vector3
team CSteamID
fobManager FobManager

Returns

NearbySupplyCrates

FromSingleCrate(SupplyCrate, FobManager)

public static NearbySupplyCrates FromSingleCrate(SupplyCrate existing, FobManager fobManager)

Parameters

existing SupplyCrate
fobManager FobManager

Returns

NearbySupplyCrates

NotifyChanged(SupplyType, float, SupplyChangeReason, WarfarePlayer?)

public void NotifyChanged(SupplyType type, float amountDelta, SupplyChangeReason reason, WarfarePlayer? resupplier = null)

Parameters

type SupplyType
amountDelta float
reason SupplyChangeReason
resupplier WarfarePlayer

RefundSupplies(float, SupplyType)

public void RefundSupplies(float amount, SupplyType type)

Parameters

amount float
type SupplyType

SubtractSupplies(float, SupplyType, SupplyChangeReason)

public void SubtractSupplies(float amount, SupplyType type, SupplyChangeReason changeReason)

Parameters

amount float
type SupplyType
changeReason SupplyChangeReason