Typecode references in Gosu

To refer to a specific typecode in Gosu, use the following syntax.

typekey.TypeList.TC_Typecode

For example, the default State typelist has typecodes for states in the US and provinces in Canada.

To refer to the typecode for the state of California in the typelist State, use the following Gosu expression.

typekey.State.TC_CA

You must prefix the code in the object path expressions for typecodes with TC_.

Note: In the typecode reference syntax, use the appropriate nested class name if and only if your typelist has over 2,048 typecodes. This modified syntax is as follows:
typekey.TypeList.[NestedClassName.]TC_Typecode
Note: Use code completion in Studio to build complete object path expressions for typecodes. Type “typekey.” to begin, and work your way down to the typecode that you want.

See also