Class StrategyMap
- Namespace
- Uncreated.Warfare.StrategyMaps
- Assembly
- Uncreated.Warfare.dll
public class StrategyMap : IDisposable, IEventListener<ClaimBedRequested>
- Inheritance
-
StrategyMap
- Implements
- Inherited Members
Constructors
StrategyMap(IBuildable, MapTableInfo, BuildableAttributesDataStore)
public StrategyMap(IBuildable buildable, MapTableInfo tableInfo, BuildableAttributesDataStore attributeStore)
Parameters
buildableIBuildabletableInfoMapTableInfoattributeStoreBuildableAttributesDataStore
Properties
MapTable
public IBuildable MapTable { get; set; }
Property Value
Methods
AddMapTack(MapTack, object)
public void AddMapTack(MapTack newMapTack, object owner)
Parameters
ClearMapTacks()
public void ClearMapTacks()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ProjectWorldCoordsToMapTable(Transform, Vector3, Vector2)
Projects a world coodinate to the world coordinate of a point on a flat 'war table' type barricade, given the x and y size and 3D offset of the table.
public static Matrix4x4 ProjectWorldCoordsToMapTable(Transform mapTableTransform, Vector3 platformOffset, Vector2 platformSize)
Parameters
mapTableTransformTransformplatformOffsetVector3platformSizeVector2
Returns
- Matrix4x4
RemoveMapTack(MapTack)
public bool RemoveMapTack(MapTack newMapTack)
Parameters
newMapTackMapTack
Returns
RemoveMapTacks(Func<MapTack, bool>)
public int RemoveMapTacks(Func<MapTack, bool> filter)
Parameters
Returns
RemoveMapTacks(Func<MapTack, object, bool>)
public int RemoveMapTacks(Func<MapTack, object, bool> filter)
Parameters
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TranslateWorldPointOntoMap(Vector3)
public Vector3 TranslateWorldPointOntoMap(Vector3 featureWorldPosition)
Parameters
featureWorldPositionVector3
Returns
- Vector3