A Region contains a group of adjacent spans.
More...
A Region contains a group of adjacent spans.
Definition at line 352 of file Region.cs.
◆ Region()
SharpNav.Region.Region |
( |
int |
idNum | ) |
|
Initializes a new instance of the Region class.
- Parameters
-
Definition at line 366 of file Region.cs.
◆ AddUniqueFloorRegion()
void SharpNav.Region.AddUniqueFloorRegion |
( |
RegionId |
n | ) |
|
Only add a floor if it hasn't been added already
- Parameters
-
Definition at line 589 of file Region.cs.
◆ CanMergeWith()
bool SharpNav.Region.CanMergeWith |
( |
Region |
otherRegion | ) |
|
Determine whether this region can merge with another region.
- Parameters
-
otherRegion | The other region to merge with |
- Returns
- True if the two regions can be merged, false if otherwise
Definition at line 560 of file Region.cs.
◆ IsConnectedToBorder()
bool SharpNav.Region.IsConnectedToBorder |
( |
| ) |
|
Test if region is connected to a border
- Returns
- True if connected, false if not
Definition at line 662 of file Region.cs.
◆ MergeWithRegion()
bool SharpNav.Region.MergeWithRegion |
( |
Region |
otherRegion | ) |
|
Merge two regions into one. Needs good testing
- Parameters
-
otherRegion | The region to merge with |
- Returns
- True if merged successfully, false if otherwise
Definition at line 600 of file Region.cs.
◆ RemoveAdjacentNeighbours()
void SharpNav.Region.RemoveAdjacentNeighbours |
( |
| ) |
|
Remove adjacent connections if there is a duplicate
Definition at line 505 of file Region.cs.
◆ ReplaceNeighbour()
Replace all connection and floor values
- Parameters
-
oldId | The value you want to replace |
newId | The new value that will be used |
Definition at line 530 of file Region.cs.
◆ AreaType
Area SharpNav.Region.AreaType |
|
getset |
Gets or sets the AreaType of this region
Definition at line 413 of file Region.cs.
◆ Connections
List<RegionId> SharpNav.Region.Connections |
|
get |
Gets the list of connected regions
Definition at line 472 of file Region.cs.
◆ FloorRegions
List<RegionId> SharpNav.Region.FloorRegions |
|
get |
Gets the list of floor regions
Definition at line 461 of file Region.cs.
◆ Id
Gets or sets the region id
Definition at line 397 of file Region.cs.
◆ IsBorder
bool SharpNav.Region.IsBorder |
|
get |
Gets a value indicating whether the region is a border region.
Definition at line 483 of file Region.cs.
◆ IsBorderOrNull
bool SharpNav.Region.IsBorderOrNull |
|
get |
Gets a value indicating whether the region is either a border region or the null region.
Definition at line 494 of file Region.cs.
◆ Remap
bool SharpNav.Region.Remap |
|
getset |
Gets or sets a value indicating whether this region has been remapped or not
Definition at line 429 of file Region.cs.
◆ SpanCount
int SharpNav.Region.SpanCount |
|
getset |
Gets or sets the number of spans
Definition at line 381 of file Region.cs.
◆ Visited
bool SharpNav.Region.Visited |
|
getset |
Gets or sets a value indicating whether this region has been visited or not
Definition at line 445 of file Region.cs.
The documentation for this class was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Region.cs