API Reference v10.1.0

TypedSettingenum with values

Module: ZaberMotionAscii

The value of a setting, which can be of various types.

To use this type, add import ZaberMotionAscii to the top of your source code.

This type is an enum with associated values. Use a switch statement or an if case statement to read the value, for example if case let .double(value) = typedSetting { ... }.

Member Types

t
Double
t
Int64
t
Bool
t
String

Constructors

TypedSetting.double(value)
Creates a variant holding a value of type Double.
Arguments
NameTypeDescription
valueDoubleThe value to store in the variant.
TypedSetting.int64(value)
Creates a variant holding a value of type Int64.
Arguments
NameTypeDescription
valueInt64The value to store in the variant.
TypedSetting.bool(value)
Creates a variant holding a value of type Bool.
Arguments
NameTypeDescription
valueBoolThe value to store in the variant.
TypedSetting.string(value)
Creates a variant holding a value of type String.
Arguments
NameTypeDescription
valueStringThe value to store in the variant.