Class ShovelableBuildable
- Namespace
- Uncreated.Warfare.FOBs.Construction
- Assembly
- Uncreated.Warfare.dll
public class ShovelableBuildable : BuildableFobEntity<ShovelableInfo>, IBuildableFobEntity, IFobEntity, ITransformObject, IDisposable
- Inheritance
-
ShovelableBuildable
- Implements
- Inherited Members
- Extension Methods
Constructors
ShovelableBuildable(Team, ShovelableInfo, IBuildable, IServiceProvider, IAssetLink<EffectAsset>?)
public ShovelableBuildable(Team team, ShovelableInfo info, IBuildable foundation, IServiceProvider serviceProvider, IAssetLink<EffectAsset>? shovelEffect = null)
Parameters
teamTeaminfoShovelableInfofoundationIBuildableserviceProviderIServiceProvidershovelEffectIAssetLink<EffectAsset>
Properties
Builders
public PlayerContributionTracker Builders { get; }
Property Value
HitsRemaining
public int HitsRemaining { get; set; }
Property Value
Info
public ShovelableInfo Info { get; }
Property Value
IsCompleted
public bool IsCompleted { get; }
Property Value
IsEmplacement
public bool IsEmplacement { get; }
Property Value
Methods
Complete(WarfarePlayer)
public virtual void Complete(WarfarePlayer shoveler)
Parameters
shovelerWarfarePlayer
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.
Shovel(WarfarePlayer, Vector3)
public bool Shovel(WarfarePlayer shoveler, Vector3 point)
Parameters
shovelerWarfarePlayerpointVector3
Returns
Events
OnComplete
public event Action<IBuildable?>? OnComplete