RoomConnector

Class in ChivalrousGames.DungeonMaster / Inherits from: BaseConnector

Description

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

Fields

towardAnyRegion bool If checked, connector will accept connection with RoomConnectors of any Region. If unchecked, specify acceptable Region(s) or no connection can be accepted.
regions RegionList The list of Regions this connector will accept connections from.

Methods

ConnectsWithRoomConnector
public bool ConnectsWithRoomConnector(Room thisRoom, RoomConnector otherRoomConnector, Room otherRoom);
Parameters
thisRoom Room This Room
otherRoomConnector RoomConnector The other Room RoomConnector
otherRoom Room The other Room
Return
bool True 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
thisRoomConnector RoomConnector This Room RoomConnector
thisRoom Room This Room
otherRoomConnector RoomConnector The other Room RoomConnector
otherRoom Room The other Room
Return
bool True if RoomConnectors are able to connect together; otherwise, false.
Description

Verifies if this RoomConnector is able to connect with another RoomConnector.