RoomConnector
Class in ChivalrousGames.DungeonMaster / Inherits from: BaseConnector

Description

A connection from a Room toward another Room in the same Level.

Fields

decreaseWeightWithUsageboolIf true and a random selection occurs to determine which connector is selected, the more the ConnectorType associated with this RoomConnector appears, the less likely it will be to appear. Weight never goes lower than a minimum weight of 1. Unaffected by PresetRooms.
decreaseWeightAmountintThe amount the weight is decreased each time the ConnectorType associated with this RoomConnector is used in a Level.
towardAnyRegionboolIf checked, connector will accept connection with RoomConnectors of any Region. If unchecked, specify acceptable Region(s) or no connection can be accepted.
regionsRegionListThe list of Regions this connector will accept connections from.

Methods

ConnectsWithRoomConnector
public bool ConnectsWithRoomConnector(Room thisRoom, RoomConnector otherRoomConnector, Room otherRoom);
Parameters
thisRoomRoomThis Room
otherRoomConnectorRoomConnectorThe other Room RoomConnector
otherRoomRoomThe other Room
Return
boolTrue if RoomConnectors are able to connect together; otherwise, false.
Description
Verifies if this RoomConnector is able to connect with another RoomConnector.

Static Methods

RoomConnectorsConnect
public static bool RoomConnectorsConnect(RoomConnector thisRoomConnector, Room thisRoom, RoomConnector otherRoomConnector, Room otherRoom);
Parameters
thisRoomConnectorRoomConnectorThis Room RoomConnector
thisRoomRoomThis Room
otherRoomConnectorRoomConnectorThe other Room RoomConnector
otherRoomRoomThe other Room
Return
boolTrue if RoomConnectors are able to connect together; otherwise, false.
Description
Verifies if this RoomConnector is able to connect with another RoomConnector.