mirror of
https://github.com/smyalygames/checklist-tester.git
synced 2025-11-30 01:39:38 +01:00
feat(connector): track initial state in test runs
This commit is contained in:
@@ -27,6 +27,24 @@ class XPC {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the state of all Datarefs
|
||||
*
|
||||
* @param drefs Array of Datarefs (maximum list size = 255)
|
||||
*
|
||||
* @return List of all the values for each Dataref
|
||||
*/
|
||||
@Throws(IllegalArgumentException::class)
|
||||
fun getStates(drefs: Array<String>): Array<FloatArray> {
|
||||
if (drefs.size > 255) {
|
||||
throw IllegalArgumentException("The drefs cannot contain more than 255 elements")
|
||||
}
|
||||
|
||||
val result = xpc.getDREFs(drefs)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a dataref in X-Plane to the set goal
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user