battlecore::device
The device module exposes the device identity and configuration: its id, role, mode and volume, along with the GPS count. Include its declarations with include "./battlecore/device.bst";.
getGpsCount
Returns the GPS count.
native int battlecore::device.getGpsCount ();getId / setId
Gets or sets the device id.
native int battlecore::device.getId ();
native void battlecore::device.setId (int newVal);getRole / setRole
Gets or sets the device role.
native int battlecore::device.getRole ();
native void battlecore::device.setRole (int newVal);getMode / setMode
Gets or sets the device mode.
native int battlecore::device.getMode ();
native void battlecore::device.setMode (int newVal);getVolume / setVolume
Gets or sets the device volume.
native int battlecore::device.getVolume ();
native void battlecore::device.setVolume (int newVal);