LevelConnectorFULL version only
Class in ChivalrousGames.DungeonMaster / Inherits from: BaseConnector / Implements : ILevelPositionedConnector
Description
A connection from a Room toward a Room in another Level.
Fields
direction | Direction | The direction from this connector to the target. |
position | ConnectorPosition | The ideal position for this connector in a Level. If “Peripheral” will try put the connector near the edge of the Level of the connector direction. |
peripheryTolerance | int | The maximum amount of accepted distance to Level periphery. “0” means must absolutely be at the level periphery. This is a guideline. If there is a choice between failing Level generation and violating this setting, then the setting will be violated. |
separateFromOthers | bool | Check this option to attempt to place this connector far from the others. |
separationTolerance | int | The minimum acceptable amount of separation from another LevelConnector or DungeonConnector. “1” means direct neighbor. |
towardAnyLevel | bool | If checked, connector will accept connection with LevelsConnectors of any level. If unchecked, specify acceptable Level(s) or no connection can be accepted. |
levels | LevelList | The list of Levels this connector will accept connections from. |
Methods
GetConnectorPosition
public ConnectorPosition GetConnectorPosition();
Return
ConnectorPosition | The value of the field “position” |
Description
Simple method that returns the value of the field “position”.
GetPeripheryTolerance
public int GetPeripheryTolerance();
Return
int | The value of the field “peripheryTolerance” |
Description
Simple method that returns the value of the field “peripheryTolerance”.
GetSeparateFromOthers
public bool GetSeparateFromOthers();
Return
bool | The value of the field “separateFromOthers” |
Description
Simple method that returns the value of the field “separateFromOthers”.
GetSeparationTolerance
public int GetSeparationTolerance();
Return
int | The value of the field “separationTolerance” |
Description
Simple method that returns the value of the field “separationTolerance”.
GetDirection
public Direction GetDirection();
Return
Direction | The value of the field “direction” |
Description
Simple method that returns the value of the field “direction”.