Class Connection
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the marker specifies how to connect to the entity, e.g., which side of a surface to connect to.
[MessagePackObject(true)]
public class Connection
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Connection(string, int)
public Connection(string _Handle, int _Marker)
Parameters
_Handle string
_Marker int
Connection()
Initializes a new instance of the
public Connection()
Connection(string)
Initializes a new instance of the
public Connection(string _Handle)
Parameters
_Handle string
AutoCAD handle.
Connection(DbObject)
Initializes a new instance of the
public Connection(DbObject x)
Parameters
x DbObject
Gets the AutoCAD handle from this DbObject.
See Also
Connection(DbObject, int)
Initializes a new instance of the
public Connection(DbObject x, int _Marker)
Parameters
x DbObject
Gets the AutoCAD handle from this DbObject.
_Marker int
The marker specifies how to connect to the entity.
See Also
Fields
Empty
[IgnoreMember]
public static readonly Connection Empty
Field Value
Properties
Handle
public string Handle { get; set; }
Property Value
Marker
public int Marker { get; set; }
Property Value
Methods
GetDomainName()
public string GetDomainName()
Returns
IsDomainName()
public bool IsDomainName()
Returns
IsEmpty()
public bool IsEmpty()
Returns
SetDomainName(string)
public void SetDomainName(string domainName)
Parameters
domainName string
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
A string that represents the current object.
Operators
implicit operator Connection(string)
public static implicit operator Connection(string handle)
Parameters
handle string
Returns
implicit operator Connection(DbObject)
public static implicit operator Connection(DbObject x)
Parameters
x DbObject
Returns
implicit operator List<Connection>(Connection)
Implicitly converts a single element into a one-element list.
public static implicit operator List<Connection>(Connection x)