OpenTD.UserCode Class Reference
Last update: 16.07.2025Client-side representation of a Logic Object User Code item in a TD instance. More...
Inheritance diagram for OpenTD.UserCode:

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 | |
| override void | Update () |
| Updates the TD entity with the latest client data. | |
| override void | CreateIn (ThermalDesktop td) |
| Creates the TD entity in the specified TD instance. | |
| override void | UpdateFromTD () |
| Updates the client-side instance with the latest data from the TD entity. | |
| 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 | Code [get, set] |
| LogicObjectRoutineTypes | Routine [get, set] |
| string | Declarations [get, set] |
| string | UseStatements [get, set] |
| string | TdClassName [get] |
| 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
Client-side representation of a Logic Object User Code item in a TD instance.
- See also
- OpenTD.ThermalDesktop
Member Enumeration Documentation
◆ LogicType
|
inherited |
Member Function Documentation
◆ CreateIn()
|
inline |
Creates the TD entity in the specified TD instance.
Implements OpenTD.IReassignable.
◆ SetFrom()
|
inlineinherited |
◆ ToString()
|
inlineinherited |
◆ Update()
|
inline |
Updates the TD entity with the latest client data.
Implements OpenTD.IUpdatable.
◆ UpdateFromTD()
|
inlineinherited |
Updates the client-side instance with the latest data from the TD entity.
Implements OpenTD.IUpdatable.
◆ UpdateIn()
|
inlineinherited |
Updates the TD entity corresponding to this object in the specified TD instance, if possible.
Implements OpenTD.IReassignable.
Member Data Documentation
◆ TdProxy
|
protectedinherited |
Property Documentation
◆ Code
|
getsetinherited |
◆ Comment
|
getsetinherited |
◆ Declarations
|
getsetinherited |
◆ EnabledExp
|
getsetinherited |
◆ GroupName
|
getsetinherited |
◆ Handle
|
getsetinherited |
◆ Routine
|
getsetinherited |
◆ Submodel
|
getsetinherited |
◆ TdClassName
|
getinherited |
◆ Type
|
getinherited |
◆ UseStatements
|
getsetinherited |
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/UserCode.cs