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
MapTack(IAssetLink<ItemPlaceableAsset>, Vector3)
public MapTack(IAssetLink<ItemPlaceableAsset> markerAsset, Vector3 featureWorldPosition)
Parameters
markerAssetIAssetLink<ItemPlaceableAsset>featureWorldPositionVector3
Properties
Alive
If this object is still alive.
public bool Alive { get; }
Property Value
FeatureWorldPosition
public virtual Vector3 FeatureWorldPosition { get; }
Property Value
- Vector3
Marker
public IBuildable Marker { get; }
Property Value
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
worldCoordinatesOnTableVector3rotationQuaternion
SetPositionAndRotation(Vector3, Quaternion)
Set the position and rotation at the same time.
public void SetPositionAndRotation(Vector3 position, Quaternion rotation)
Parameters
positionVector3rotationQuaternion
Exceptions
- GameThreadException
Not on main thread.
- NotSupportedException
Not able to set position or rotation.