← Back to carmenta.com
Carmenta Engine SDK Documentation
×

KeyedAttributeVariable<AircraftType>.KeyedAttributeVariable<AircraftType> Constructors

Initializes a new instance of the KeyedAttributeVariable<AircraftType> class.

Overload List

 NameDescription
Public methodKeyedAttributeVariable(Atom key)Initializes a new instance of the KeyedAttributeVariable<AircraftType> class that uses the specified attribute value as a key into the lookup table.
Public methodKeyedAttributeVariable(Atom key, AircraftType defaultValue)Initializes a new instance of the KeyedAttributeVariable<AircraftType> class that uses the specified attribute value as a key into a lookup table and a default value that is returned when the key attribute does not exist.

KeyedAttributeVariable(Atom key)

Initializes a new instance of the KeyedAttributeVariable<AircraftType> class that uses the specified attribute value as a key into the lookup table.

Syntax

C#
public KeyedAttributeVariable<AircraftType> (
    Atom key
)

Parameters

key
Type: Atom
An atom that specifies which attribute value is used as a key into the lookup table.

KeyedAttributeVariable(Atom key, AircraftType defaultValue)

Initializes a new instance of the KeyedAttributeVariable<AircraftType> class that uses the specified attribute value as a key into a lookup table and a default value that is returned when the key attribute does not exist.

Syntax

C#
public KeyedAttributeVariable<AircraftType> (
    Atom key,
    AircraftType defaultValue
)

Parameters

key
Type: Atom
An atom that specifies which attribute is returned.
defaultValue
Type: AircraftType
The value that is returned if the attribute specified by key does not exist or is of the wrong type.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept