Table of Contents

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

buildable IBuildable
tableInfo MapTableInfo
attributeStore BuildableAttributesDataStore

Properties

MapTable

public IBuildable MapTable { get; set; }

Property Value

IBuildable

Methods

AddMapTack(MapTack, object)

public void AddMapTack(MapTack newMapTack, object owner)

Parameters

newMapTack MapTack
owner object

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

mapTableTransform Transform
platformOffset Vector3
platformSize Vector2

Returns

Matrix4x4

RemoveMapTack(MapTack)

public bool RemoveMapTack(MapTack newMapTack)

Parameters

newMapTack MapTack

Returns

bool

RemoveMapTacks(Func<MapTack, bool>)

public int RemoveMapTacks(Func<MapTack, bool> filter)

Parameters

filter Func<MapTack, bool>

Returns

int

RemoveMapTacks(Func<MapTack, object, bool>)

public int RemoveMapTacks(Func<MapTack, object, bool> filter)

Parameters

filter Func<MapTack, object, bool>

Returns

int

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

featureWorldPosition Vector3

Returns

Vector3