Class MinimapManager
Manager for adding custom Map Overlays to the game.
Inherited Members
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class MinimapManager
Fields
Name | Description |
---|---|
FilterOff | Colour which sets a filter off. See FilterOn. |
FilterOn | Colour which sets a filter on. Used for ForestFilter and FogFilter. A full alpha value enables this pixel, and then the red value is written to the result texture. |
MeadowHeight | Height "Colour" used for the base height of "Meadows" |
Properties
Name | Description |
---|---|
Instance | The singleton instance of this manager. |
Methods
Name | Description |
---|---|
GetDrawingNames() | Return a list of all current MapDrawing names |
GetMapDrawing(string) | Create a new MapDrawing with a custom overlay name |
GetMapOverlay(string, bool) | Create a new MapOverlay with a custom overlay name |
GetOverlayNames() | Return a list of all current overlay names |
OverlayToWorldCoords(Vector2, int) | Input a MapOverlay Coordinate and the size of the overlay texture to retrieve the translated World coordinates. |
RemoveMapDrawing(string) | Causes MapManager to stop updating the MapDrawing object and removes this Manager's reference to that drawing. |
RemoveMapOverlay(string) | Causes MapManager to stop updating the MapOverlay object and removes this Manager's reference to that overlay. |
WorldToOverlayCoords(Vector3, int) | Input a World Coordinate and the size of the overlay texture to retrieve the translated overlay coordinates. |
Events
Name | Description |
---|---|
OnVanillaMapAvailable | Event that gets fired once the Map for a World has started and Mods can begin to draw. |
OnVanillaMapDataLoaded | Event that gets fired once data for a specific Map for a world has been loaded. Eg, Pins are available after this has fired. |