TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IConfigTypeBag in Tinman.Core.Config

An IConfigTypeBag represents a scope in which identifiers are associated with ConfigType objects, for example declared variables and fields.

interface IConfigTypeBag extends IVersioned
  base of IConfigValueBag

Remarks

Type bags are used during parsing and PSI construction in order to resolve the types of identifier expressions. They do not contain config values.

Attributes

Count

The number of named objects in the bag.

property Count { get }
type int32
value [>=0] The number of named objects.

Names

The names of all objects in the bag.

property Names { get }
type IBagConst<string>
value [not-null] The object names.

Version

Returns the current version of object.

property Version { get }
type int32
value The current version number.
inherited IVersioned.Version

Remarks:

For each modification, the version is incremented by at least one.

Methods

Contains

Checks if this bag contains an object of the given name.

method Contains (string name)
type bool
params name [not-null] The name.
returns true if the bag contains an object named name, false if it does not.

GetDomain

Looks in the config domain of this bag and tries to find the bag of the given name.

method GetDomain (string name)
type IConfigValueBag
params name Name of the bag to find or null to return this bag.
returns [not-null] The type bag. Will be empty if not found.

GetTypeNull

Returns the config type that is associated with the given name, for example the type of a script variable.

method GetTypeNull (string name)
type ConfigType
params name [not-null] The name.
returns The associated config type of null if not found.

Extensions

GetExpressionTypeNull

method GetExpressionTypeNull (string domain, string identifier)
type ConfigType
params domain
  identifier