Show / Hide Table of Contents

Class ConnectionBase

Represents a connection between two rooms in a level graph.

Inheritance
System.Object
ConnectionBase
Connection
Dungeon1Connection
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class ConnectionBase : ScriptableObject
Remarks

We usually do not care about the direction, i.e. it does not matter which room is From and which is To.

Fields

From

Room from which this connection leads.

Declaration
public RoomBase From
Field Value
Type Description
RoomBase

To

Room to which this connection leads.

Declaration
public RoomBase To
Field Value
Type Description
RoomBase

Methods

GetEditorStyle(Boolean)

Gets the style for the level graph editor. Override this to change how are connection nodes displayed in the editor.

Declaration
public virtual ConnectionEditorStyle GetEditorStyle(bool isFocused)
Parameters
Type Name Description
System.Boolean isFocused
Returns
Type Description
ConnectionEditorStyle

GetRoomTemplates()

Gets all the corridor room templates that are available for the connection.

Declaration
public virtual List<GameObject> GetRoomTemplates()
Returns
Type Description
System.Collections.Generic.List<GameObject>
Remarks

This method is used in the default implementation of the input setup task. If null or an empty list is returned, the input setup will use the default room template from the level graph.

In This Article
Back to top Generated by DocFX