Class AbstractMinimapElement
Minimap element that supports drawing a texture on a background.
Inheritance
AbstractMinimapElement
Implements
Namespace: nickmaltbie.MinimapTools.Background
Assembly: cs.temp.dll.dll
Syntax
public abstract class AbstractMinimapElement : MonoBehaviour, IMinimapElement
Fields
drawOrder
Order that this should be drawn on the minimap.
Declaration
public int drawOrder
Field Value
Type | Description |
---|---|
Int32 |
Methods
DrawOnBackground(IMinimap, Texture2D)
Draw this element on the background of a minimap.
Declaration
public virtual void DrawOnBackground(IMinimap minimap, Texture2D backgroundTexture)
Parameters
Type | Name | Description |
---|---|---|
IMinimap | minimap | Minimap for getting space of element. |
Texture2D | backgroundTexture | Background texture to draw minimap onto. |
GetOrder()
Get the order that this element should be drawn on the background.
Declaration
public int GetOrder()
Returns
Type | Description |
---|---|
Int32 | Integer representing order with lowest number taking priority. |
GetRotation()
Get the rotation of this object in world space.
Declaration
public abstract float GetRotation()
Returns
Type | Description |
---|---|
Single | Rotation of the object in world space. |
GetTexture(IMinimap)
Gets the texture associated with this minimap element for a given minimap.
Declaration
public abstract Texture2D GetTexture(IMinimap minimap)
Parameters
Type | Name | Description |
---|---|---|
IMinimap | minimap | Minimap to get the target texture for. |
Returns
Type | Description |
---|---|
Texture2D | Texture to draw on the background of the minimap. |
WorldCenter()
Get the center of this element in world space.
Declaration
public abstract Vector3 WorldCenter()
Returns
Type | Description |
---|---|
Vector3 |