Table of Contents

Class EmplacementEntity

Namespace
Uncreated.Warfare.FOBs.Entities
Assembly
Uncreated.Warfare.dll
public class EmplacementEntity : IFobEntity, ITransformObject
Inheritance
EmplacementEntity
Implements
Inherited Members
Extension Methods

Constructors

public EmplacementEntity(WarfareVehicle emplacementVehicle, Team team, IAssetLink<ItemPlaceableAsset> foundationAsset, IBuildable? foundation = null)

Parameters

emplacementVehicle WarfareVehicle
team Team
foundationAsset IAssetLink<ItemPlaceableAsset>
foundation IBuildable

Properties

AuxilliaryBuildable

public IBuildable? AuxilliaryBuildable { get; }

Property Value

IBuildable

IdentifyingAsset

The primary asset that identifies this fob entity.

public IAssetLink<Asset> IdentifyingAsset { get; }

Property Value

IAssetLink<Asset>

Position

The world position of the object.

public Vector3 Position { get; set; }

Property Value

Vector3

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set position.

Rotation

The world rotation of the object.

public Quaternion Rotation { get; set; }

Property Value

Quaternion

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set rotation.

Team

The team this buildable belongs to.

public Team Team { get; }

Property Value

Team

Vehicle

public WarfareVehicle Vehicle { get; }

Property Value

WarfareVehicle

Methods

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.

SetPositionAndRotation(Vector3, Quaternion)

Set the position and rotation at the same time.

public void SetPositionAndRotation(Vector3 position, Quaternion rotation)

Parameters

position Vector3
rotation Quaternion

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set position or rotation.

UpdateConfiguration(FobConfiguration)

Called when the FobConfiguration is updated.

public void UpdateConfiguration(FobConfiguration configuration)

Parameters

configuration FobConfiguration