Skip to main content

OpenTD .NET4 reference 2025 R2

OpenTD.LogicObject Class Reference

Last update: 16.07.2025

Base class for TD logic objects. More...

Inheritance diagram for OpenTD.LogicObject:
OpenTD.OpenTDObjectOpenTD.ITdDerivedOpenTD.IUpdatableOpenTD.IReassignableOpenTD.RcArrayInterpolationDataOpenTD.RcLogicUDFACollectionDataOpenTD.RcLogicUserArrayDataOpenTD.RcLogicUserCodeDataOpenTD.RcPIDDataOpenTD.ArrayInterpolationOpenTD.UDFACollectionOpenTD.UserArrayOpenTD.UserCodeOpenTD.PID

Public Types

enum  LogicType {
  TRANSLATECODE = -1 , ARRAY_INTERP , BIVAR_INTERP , PID ,
  USERCODE , DIFFEQ , DIFFEQANGULAR , DIFFEQRPM ,
  COMPAREDL , USER_ARRAY , SUBCOMPLQ , FORTRANARRAY ,
  MAXLOGICTYPE
}
 TD Logic Object types. More...
 

Public Member Functions

 LogicObject ()
 
override void Update ()
 Updates the TD entity with the latest client data.
 
override void UpdateFromTD ()
 Updates the client-side instance with the latest data from the TD entity.
 
override void CreateIn (ThermalDesktop td)
 Creates the TD entity in the specified TD instance.
 
override string ToString ()
 
void SetFrom (OpenTDObject x)
 
void UpdateIn (ThermalDesktop td)
 Updates the TD entity corresponding to this object in the specified TD instance, if possible.
 

Protected Attributes

ITdCommander TdProxy
 

Properties

string Handle [get, set]
 
string Comment [get, set]
 
SubmodelNameData Submodel [get, set]
 
ExpressionData EnabledExp [get, set]
 
string GroupName [get, set]
 
LogicType Type [get]
 

Detailed Description

Base class for TD logic objects.

Member Enumeration Documentation

◆ LogicType

TD Logic Object types.

Enumerator
TRANSLATECODE 
ARRAY_INTERP 
BIVAR_INTERP 
PID 
USERCODE 
DIFFEQ 
DIFFEQANGULAR 
DIFFEQRPM 
COMPAREDL 
USER_ARRAY 
SUBCOMPLQ 
FORTRANARRAY 
MAXLOGICTYPE 

Constructor & Destructor Documentation

◆ LogicObject()

OpenTD.LogicObject.LogicObject ( )
inline

Member Function Documentation

◆ CreateIn()

override void OpenTD.LogicObject.CreateIn ( ThermalDesktop td)
inline

Creates the TD entity in the specified TD instance.

Implements OpenTD.IReassignable.

◆ SetFrom()

void OpenTD.OpenTDObject.SetFrom ( OpenTDObject x)
inlineinherited

◆ ToString()

override string OpenTD.LogicObject.ToString ( )
inline

◆ Update()

override void OpenTD.LogicObject.Update ( )
inline

Updates the TD entity with the latest client data.

Implements OpenTD.IUpdatable.

◆ UpdateFromTD()

override void OpenTD.LogicObject.UpdateFromTD ( )
inline

Updates the client-side instance with the latest data from the TD entity.

Implements OpenTD.IUpdatable.

◆ UpdateIn()

void OpenTD.OpenTDObject.UpdateIn ( ThermalDesktop td)
inlineinherited

Updates the TD entity corresponding to this object in the specified TD instance, if possible.

Implements OpenTD.IReassignable.

Member Data Documentation

◆ TdProxy

ITdCommander OpenTD.OpenTDObject.TdProxy
protectedinherited

Property Documentation

◆ Comment

string OpenTD.LogicObject.Comment
getset

◆ EnabledExp

ExpressionData OpenTD.LogicObject.EnabledExp
getset

◆ GroupName

string OpenTD.LogicObject.GroupName
getset

◆ Handle

string OpenTD.LogicObject.Handle
getset

◆ Submodel

SubmodelNameData OpenTD.LogicObject.Submodel
getset

◆ Type

LogicType OpenTD.LogicObject.Type
get

The documentation for this class was generated from the following file:
  • C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD/LogicObject.cs

Connect with Ansys