Table of Contents

Class MapTack

Namespace
Uncreated.Warfare.StrategyMaps.MapTacks
Assembly
Uncreated.Warfare.dll
public class MapTack : IDisposable, ITransformObject
Inheritance
MapTack
Implements
Derived
Inherited Members
Extension Methods

Constructors

public MapTack(IAssetLink<ItemPlaceableAsset> markerAsset, Vector3 featureWorldPosition)

Parameters

markerAsset IAssetLink<ItemPlaceableAsset>
featureWorldPosition Vector3

Properties

Alive

If this object is still alive.

public bool Alive { get; }

Property Value

bool

FeatureWorldPosition

public virtual Vector3 FeatureWorldPosition { get; }

Property Value

Vector3

Marker

public IBuildable Marker { get; }

Property Value

IBuildable

MarkerAsset

public IAssetLink<ItemPlaceableAsset> MarkerAsset { get; }

Property Value

IAssetLink<ItemPlaceableAsset>

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.

Scale

The world scale of the object.

public Vector3 Scale { get; set; }

Property Value

Vector3

Exceptions

GameThreadException

Not on main thread.

NotSupportedException

Not able to set scale.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DropMarker(Vector3, Quaternion)

public virtual void DropMarker(Vector3 worldCoordinatesOnTable, Quaternion rotation)

Parameters

worldCoordinatesOnTable Vector3
rotation Quaternion

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.