Table of Contents

Class Level

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class Level : SerializedMonoBehaviour, ISerializationCallbackReceiver, ISupportsPrefabSerialization
Inheritance
SerializedMonoBehaviour
Level
Implements
ISerializationCallbackReceiver
ISupportsPrefabSerialization
Inherited Members
SerializedMonoBehaviour.OnAfterDeserialize()
SerializedMonoBehaviour.OnBeforeSerialize()
Extension Methods

Constructors

Level()

public Level()

Fields

OnLevelFinishedSetUp

public Action OnLevelFinishedSetUp

Field Value

Action

currentLevel

public static Level currentLevel

Field Value

Level

levelIsReady

public bool levelIsReady

Field Value

bool

lights

public List<Light> lights

Field Value

List<Light>

patrolGroups

public Dictionary<PatrolPoint.PatrolGroup, List<PatrolPoint>> patrolGroups

Field Value

Dictionary<PatrolPoint.PatrolGroup, List<PatrolPoint>>

richPresenceState

public RichPresenceState richPresenceState

Field Value

RichPresenceState

toggleLights

public Action<bool, Vector3, float> toggleLights

Field Value

Action<bool, Vector3, float>

Methods

AddPoint(PatrolPoint)

public void AddPoint(PatrolPoint patrolPoint)

Parameters

patrolPoint PatrolPoint

Awake()

public void Awake()

GetClosestHiddenPoint(Vector3, bool)

public PatrolPoint GetClosestHiddenPoint(Vector3 vector3, bool includeTemporary = false)

Parameters

vector3 Vector3
includeTemporary bool

Returns

PatrolPoint

GetClosestPoint(List<PatrolGroup>, Vector3, PatrolPoint, float, bool)

public PatrolPoint GetClosestPoint(List<PatrolPoint.PatrolGroup> groups, Vector3 pos, PatrolPoint current, float maxHeightDif = 100000, bool includeTemporary = false)

Parameters

groups List<PatrolPoint.PatrolGroup>
pos Vector3
current PatrolPoint
maxHeightDif float
includeTemporary bool

Returns

PatrolPoint

GetFreePointWithDistance(List<PatrolGroup>, Vector3, int, float, bool)

public PatrolPoint GetFreePointWithDistance(List<PatrolPoint.PatrolGroup> pgs, Vector3 position, int minDistance, float maxHeightDif, bool includeTemporary = false)

Parameters

pgs List<PatrolPoint.PatrolGroup>
position Vector3
minDistance int
maxHeightDif float
includeTemporary bool

Returns

PatrolPoint

GetPointsInGroups(List<PatrolGroup>)

public List<PatrolPoint> GetPointsInGroups(List<PatrolPoint.PatrolGroup> groups)

Parameters

groups List<PatrolPoint.PatrolGroup>

Returns

List<PatrolPoint>

GetPointsOutsideMinDistanceSortedOnClosest(List<PatrolGroup>, Vector3, float, float, bool)

public List<PatrolPoint> GetPointsOutsideMinDistanceSortedOnClosest(List<PatrolPoint.PatrolGroup> pgs, Vector3 position, float minDistance, float maxHeightDif, bool includeTemporary = false)

Parameters

pgs List<PatrolPoint.PatrolGroup>
position Vector3
minDistance float
maxHeightDif float
includeTemporary bool

Returns

List<PatrolPoint>

GetRandomPoint(List<PatrolGroup>)

public PatrolPoint GetRandomPoint(List<PatrolPoint.PatrolGroup> groups)

Parameters

groups List<PatrolPoint.PatrolGroup>

Returns

PatrolPoint

RemovePoint(PatrolPoint)

public void RemovePoint(PatrolPoint patrolPoint)

Parameters

patrolPoint PatrolPoint

SetupFinished()

public void SetupFinished()

Start()

public IEnumerator Start()

Returns

IEnumerator

ToggleLights(bool, Vector3, float)

public void ToggleLights(bool setLightsOn, Vector3 position, float range)

Parameters

setLightsOn bool
position Vector3
range float

ToggleLightsForSeconds(bool, Vector3, float, float)

public void ToggleLightsForSeconds(bool setLightsOn, Vector3 position, float range, float time)

Parameters

setLightsOn bool
position Vector3
range float
time float