I'm trying to declare an array for VibeProfile entries. Those entries will be determined at runtime.
The Attention sample includes the following declaration:
var vibrateData = [
new Attention.VibeProfile(25, 100),
new Attention.VibeProfile(50, 100),
new Attention.VibeProfile(75, 100),
new Attention.VibeProfile(100, 100),
new Attention.VibeProfile(75, 100),
new Attention.VibeProfile(50, 100),
new Attention.VibeProfile(25, 100)
] as Array<VibeProfile>;
I don't see "as" defined as a key word, or the syntax "<typeName>" defined anywhere in the Monkey C Language reference,
It's not just an academic question.
I'm attempting to declare an array that will hold VibeProfile entries, the number and content of those entries will be determined at runtime.
So far, my attempts have resulted in "Exception: UnexpectedTypeException: Expected an object of type Attention.VibeProfile"