Class GraphUpdateObject

Public

Represents a collection of settings used to update nodes in a specific region of a graph.

Inner Types

Provides burst-readable data to a graph update job.

Helper for iterating through the nodes that should be updated.

Job for applying a graph update object.

Public Methods

Apply (node)

Updates the specified node using this GUO's settings.

Public
ApplyJob< T > (mapper, data, dependencyTracker)

Update a set of nodes using this GUO's settings.

Public
GraphUpdateObject ()
Public
GraphUpdateObject (b)

Creates a new GUO with the specified bounds.

Public
RevertFromBackup ()

Reverts penalties and flags (which includes walkability) on every node which was updated using this GUO.

Public
WillUpdateNode (node)

Should be called on every node which is updated with this GUO before it is updated.

Public

Public Variables

addPenalty

Penalty to add to the nodes.

Public
bounds

The bounds to update nodes within.

Public
changedNodes

Nodes which were updated by this GraphUpdateObject.

Public
modifyTag

If true, all nodes' tag will be set to setTag.

Public
modifyWalkability

If true, all nodes' walkable variable will be set to setWalkability.

Public
nnConstraint

NNConstraint to use.

Public
resetPenaltyOnPhysics

Reset penalties to their initial values when updating grid graphs and updatePhysics is true.

Public
setTag

If modifyTag is true, all nodes' tag will be set to this value.

Public
setWalkability

If modifyWalkability is true, the nodes' walkable variable will be set to this value.

Public
shape

A shape can be specified if a bounds object does not give enough precision.

Public
trackChangedNodes

Track which nodes are changed and save backup data.

Public
updateErosion

Update Erosion for GridGraphs.

Public
updatePhysics

Use physics checks to update nodes.

Public

Private/Protected Members

backupData
Private
backupPositionData
Private

Deprecated Members

requiresFloodFill

Controlls if a flood fill will be carried out after this GUO has been applied.

Public