Class DbObject
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.
[MessagePackObject(true)]
public class DbObject : OpenTDObject, IUpdatable
Inheritance
object ← OpenTDObject ← DbObject
Derived
Implements
Inherited Members
OpenTDObject.SetFrom(OpenTDObject), OpenTDObject.Update(), OpenTDObject.UpdateFromTD(), OpenTDObject.UpdateIn(ThermalDesktop), OpenTDObject.CreateIn(ThermalDesktop), OpenTDObject.TdProxy, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
DbObject()
public DbObject()
DbObject(string)
public DbObject(string _Handle)
Parameters
_Handle string
Properties
Handle
public string Handle { get; set; }
Property Value
TypeName
public string TypeName { get; set; }
Property Value
Methods
CreateIn(ThermalDesktop)
Creates the TD entity in the specified TD instance.
public override void CreateIn(ThermalDesktop td)
Parameters
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj object
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
A hash code for the current object.
SetFrom(DbObject)
public void SetFrom(DbObject x)
Parameters
x DbObject
Update()
Updates the TD entity with the latest client data.
public override void Update()
UpdateFromTD()
Updates the client-side instance with the latest data from the TD entity.
public override void UpdateFromTD()
Operators
operator ==(DbObject, DbObject)
public static bool operator ==(DbObject first, DbObject second)
Parameters
first DbObject
second DbObject
Returns
operator !=(DbObject, DbObject)
public static bool operator !=(DbObject first, DbObject second)
Parameters
first DbObject
second DbObject