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
infoSupplyCrateInfobuildableIBuildableserviceProviderIServiceProviderteamTeamstackSupplyCrateStacklevelintindexintenableAutoRestockbool
Properties
MaxSupplyCount
public float MaxSupplyCount { get; }
Property Value
Stack
public SupplyCrateStack Stack { get; set; }
Property Value
StackInfo
public StackedSupplyCrate StackInfo { get; set; }
Property Value
SupplyCount
public float SupplyCount { get; set; }
Property Value
SupplyRadius
public float SupplyRadius { get; set; }
Property Value
Type
public SupplyType Type { get; }
Property Value
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
objobjectThe object to compare with the current object.
Returns
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
pointVector3