Skip to Main Content

BTD_Mod_Helper​.Api​.Helpers​.MapHelper


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Helpers

MapHelper Class

Contains helper methods for working with maps and custom maps.

public class MapHelper

Inheritance System.Object  MapHelper

Methods

MapHelper.CreatePathModel(string, List) Method

Creates a default PathModel out of list of PointInfos

public static PathModel CreatePathModel(string pathName, System.Collections.Generic.List<PointInfo> points);

Parameters

pathName System.String

points System.Collections.Generic.List<Il2CppAssets.Scripts.Models.Map.PointInfo>

Returns

Il2CppAssets.Scripts.Models.Map.PathModel

MapHelper.CreatePathModel(string, List) Method

Creates a default PathModel out of list of Vector2 points

public static PathModel CreatePathModel(string pathName, System.Collections.Generic.List<Vector2> points);

Parameters

pathName System.String

points System.Collections.Generic.List<Il2CppAssets.Scripts.Simulation.SMath.Vector2>

Returns

Il2CppAssets.Scripts.Models.Map.PathModel

MapHelper.CreatePointInfo(float, float, float) Method

Create a Il2CppAssets.Scripts.Models.Map.PointInfo out of X, Y, Z coords.

public static PointInfo CreatePointInfo(float x, float y, float z);

Parameters

x System.Single

y System.Single

z System.Single

Returns

Il2CppAssets.Scripts.Models.Map.PointInfo

MapHelper.CreatePointInfo(float, float) Method

Create a Il2CppAssets.Scripts.Models.Map.PointInfo out of an X and Y coord.

public static PointInfo CreatePointInfo(float x, float y);

Parameters

x System.Single

y System.Single

Returns

Il2CppAssets.Scripts.Models.Map.PointInfo

MapHelper.CreatePointInfo(Vector2) Method

Create a Il2CppAssets.Scripts.Models.Map.PointInfo out of a Vector2.

public static PointInfo CreatePointInfo(Vector2 point);

Parameters

point Il2CppAssets.Scripts.Simulation.SMath.Vector2

Returns

Il2CppAssets.Scripts.Models.Map.PointInfo

MapHelper.CreatePointInfo(Vector3) Method

Create a Il2CppAssets.Scripts.Models.Map.PointInfo out of a Vector3.

public static PointInfo CreatePointInfo(Vector3 point);

Parameters

point Il2CppAssets.Scripts.Simulation.SMath.Vector3

Returns

Il2CppAssets.Scripts.Models.Map.PointInfo

MapHelper.CreateSpawner(PathModel[]) Method

Create a SpawnerModel based off of an array of paths

public static PathSpawnerModel CreateSpawner(PathModel[] paths);

Parameters

paths Il2CppAssets.Scripts.Models.Map.PathModel[]

Returns

Il2CppAssets.Scripts.Models.Map.Spawners.PathSpawnerModel

To learn how to download BTD Mod Helper and install mods, click here