Table of Contents

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

public ShovelableBuildable(Team team, ShovelableInfo info, IBuildable foundation, IServiceProvider serviceProvider, IAssetLink<EffectAsset>? shovelEffect = null)

Parameters

team Team
info ShovelableInfo
foundation IBuildable
serviceProvider IServiceProvider
shovelEffect IAssetLink<EffectAsset>

Properties

Builders

public PlayerContributionTracker Builders { get; }

Property Value

PlayerContributionTracker

HitsRemaining

public int HitsRemaining { get; set; }

Property Value

int

Info

public ShovelableInfo Info { get; }

Property Value

ShovelableInfo

IsCompleted

public bool IsCompleted { get; }

Property Value

bool

IsEmplacement

public bool IsEmplacement { get; }

Property Value

bool

Methods

Complete(WarfarePlayer)

public virtual void Complete(WarfarePlayer shoveler)

Parameters

shoveler WarfarePlayer

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.

Shovel(WarfarePlayer, Vector3)

public bool Shovel(WarfarePlayer shoveler, Vector3 point)

Parameters

shoveler WarfarePlayer
point Vector3

Returns

bool

Events

OnComplete

public event Action<IBuildable?>? OnComplete

Event Type

Action<IBuildable>