You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Default die type is D6 (when not calling this function)
90
+
* @param{ENUM}GoDice.diceTypes - the die type
91
+
*/
92
+
setDieType(GoDice.diceTypes)
93
+
```
83
94
84
95
85
96
Responses:
@@ -150,7 +161,7 @@ Events:
150
161
/**
151
162
* When the die is stable after a legit roll the function "onStable" will be called from the GoDice class with the following parameter:
152
163
* @param{string}diceId - the die unique identifier
153
-
* @param{string}value - the D6 outcome value (1-6)
164
+
* @param{string}value - the die outcome value, depends on the die type, default is D6
154
165
* @param{array}xyzAccRaw [x, y, z] - the acc raw data x, y, z
155
166
*/
156
167
@@ -160,7 +171,7 @@ Events:
160
171
// die unique identifier
161
172
let dieIdentifier = diceID;
162
173
163
-
// the D6 outcome value (1-6)
174
+
// the die outcome value
164
175
let dieValue = value;
165
176
166
177
// the acc raw values x,y,z
@@ -176,13 +187,17 @@ Events:
176
187
* When the die is stable (but not flat) after a legit roll the function "onTiltStable" will be called from the GoDice class with the following parameter:
177
188
* @param{string}diceId - the die unique identifier
178
189
* @param{array}xyzAccRaw [x, y, z] - the acc raw data x, y, z
190
+
* @param{string}value - the die outcome value, depends on the die type, default is D6
* When the die is stable after a "fake" roll the function "onFakeStable" will be called from the GoDice class with the following parameter:
198
213
* @param{string}diceId - the die unique identifier
199
-
* @param{string}value - the D6 outcome value (1-6)
214
+
* @param{string}value - the die outcome value, depends on the die type, default is D6
200
215
* @param{array}xyzAccRaw [x, y, z] - the acc raw data x, y, z
201
216
*/
202
217
@@ -206,7 +221,7 @@ Events:
206
221
// die unique identifier
207
222
let dieIdentifier = diceID;
208
223
209
-
// the D6 outcome value (1-6)
224
+
// the die outcome value
210
225
let dieValue = value;
211
226
212
227
// the acc raw values x,y,z
@@ -221,7 +236,7 @@ Events:
221
236
/**
222
237
* When the die is stable after a small movement (rotating from one face to different face) the function "onMoveStable" will be called from the GoDice class with the * following parameter:
223
238
* @param{string}diceId - the die unique identifier
224
-
* @param{string}value - the D6 outcome value (1-6)
239
+
* @param{string}value - the die outcome value, depends on the die type, default is D6
225
240
* @param{array}xyzAccRaw [x, y, z] - the acc raw data x, y, z
0 commit comments