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

class ClassTypeBuilder in Tinman.Core.Config

sealed class ClassTypeBuilder implements IBuilder<ClassType>

Public / Methods

Abstract

The built class type will be abstract.

public method Abstract ()
type ClassTypeBuilder
returns [not-null] this

See also:

ClassType.IsAbstract

Build

Finishes the build process and returns the resulting object.

[OwnerReturn, OwnerThis]
public method Build ()
type ClassType
returns The resulting object.
implements IBuilder.Build

Configurator

The built class type will have an object configurator.

public method Configurator (IConfiguratorObject configurator)
type ClassTypeBuilder
params configurator [not-null] The object configurator.
returns [not-null] this

See also:

ConfigValue.Configure

FieldOptional

Adds an optional class field.

public method FieldOptional (string name, IConfiguratorBase type, ConfigValue defaultValue = null, string constraint = null)
type ClassTypeBuilder
params name [not-empty] The field name.
  type [not-null] The field type.
  defaultValue The field default value. If null, the default value of type will be used (see Value) will be used. Defaults to null.
  constraint The constraint expression or null.
returns [not-null] this

Adds an optional class field.

public method FieldOptional (string name, ConfigType type, ConfigValue defaultValue = null, string constraint = null)
type ClassTypeBuilder
params name [not-empty] The field name.
  type [not-null] The field type.
  defaultValue The field default value. If null, Null will be used. Defaults to null.
  constraint The constraint expression or null.
returns [not-null] this

FieldRequired

Adds a required class field.

public method FieldRequired (string name, IConfiguratorBase type, string constraint = null)
type ClassTypeBuilder
params name [not-empty] The field name.
  type [not-null] The field type.
  constraint The constraint expression or null.
returns [not-null] this

Adds a required class field.

public method FieldRequired (string name, ConfigType type, string constraint = null)
type ClassTypeBuilder
params name [not-empty] The field name.
  type [not-null] The field type.
  constraint The constraint expression or null.
returns [not-null] this

FieldVirtual

Adds an external class field.

public method FieldVirtual (string name, ConfigType type, FieldDelegate value, ConfigValue defaultValue = null)
type ClassTypeBuilder
params name [not-empty] The field name.
  type [not-null] The field type.
  value [not-null] The field value delegate.
  defaultValue Optional default value. Defaults to null.
returns [not-null] this

SuperClass

Specifies the super class for the built class type.

public method SuperClass (IConfiguratorBase superClass)
type ClassTypeBuilder
params superClass [not-null] The super class configurator.
returns [not-null] this

Specifies the super class for the built class type.

public method SuperClass (ClassType superClass)
type ClassTypeBuilder
params superClass The super class or null
returns [not-null] this