Table of Contents

Class MBSceneUtilities

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public static class MBSceneUtilities
Inheritance
MBSceneUtilities
Inherited Members

Fields

MaxNumberOfSpawnPaths

public const int MaxNumberOfSpawnPaths = 32

Field Value

int

SceneBoundaryName

public const string SceneBoundaryName = "scene_boundary"

Field Value

string

SoftBorderVertexTag

public const string SoftBorderVertexTag = "walk_area_vertex"

Field Value

string

SoftBoundaryName

public const string SoftBoundaryName = "walk_area"

Field Value

string

SpawnPathPrefix

public const string SpawnPathPrefix = "spawn_path_"

Field Value

string

Methods

FindClosestPointToBoundaries(in Vec2, List<Vec2>, out Vec2)

public static float FindClosestPointToBoundaries(in Vec2 position, List<Vec2> boundaries, out Vec2 closestPoint)

Parameters

position Vec2
boundaries List<Vec2>
closestPoint Vec2

Returns

float

FindClosestPointWithNavMeshToBoundaries(in Vec2, float, List<Vec2>, out Vec2)

public static float FindClosestPointWithNavMeshToBoundaries(in Vec2 position, float positionZ, List<Vec2> boundaries, out Vec2 closestPoint)

Parameters

position Vec2
positionZ float
boundaries List<Vec2>
closestPoint Vec2

Returns

float

FindConvexHull(ref List<Vec2>)

public static void FindConvexHull(ref List<Vec2> boundary)

Parameters

boundary List<Vec2>

GetAllSpawnPaths(Scene)

public static MBList<Path> GetAllSpawnPaths(Scene scene)

Parameters

scene Scene

Returns

MBList<Path>

GetDeploymentBoundaries(BattleSideEnum)

public static List<(string tag, List<Vec2> boundaryPoints, bool insideAllowance)> GetDeploymentBoundaries(BattleSideEnum battleSide)

Parameters

battleSide BattleSideEnum

Returns

List<(string tag, List<Vec2> boundaryPoints, bool insideAllowance)>

GetSceneBoundaryPoints(Scene, out string)

public static List<Vec2> GetSceneBoundaryPoints(Scene scene, out string boundaryName)

Parameters

scene Scene
boundaryName string

Returns

List<Vec2>

IsPointInsideBoundaries(in Vec2, List<Vec2>, float)

public static bool IsPointInsideBoundaries(in Vec2 point, List<Vec2> boundaries, float acceptanceThreshold = 0.05)

Parameters

point Vec2
boundaries List<Vec2>
acceptanceThreshold float

Returns

bool

ProjectPositionToDeploymentBoundaries(BattleSideEnum, ref WorldPosition)

public static void ProjectPositionToDeploymentBoundaries(BattleSideEnum side, ref WorldPosition position)

Parameters

side BattleSideEnum
position WorldPosition

RadialSortBoundary(ref List<Vec2>)

public static void RadialSortBoundary(ref List<Vec2> boundary)

Parameters

boundary List<Vec2>

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).