@casual-simulation/aux-common 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bots/Bot.d.ts +1 -1
- package/bots/Bot.js +17 -0
- package/bots/Bot.js.map +1 -1
- package/bots/BotCalculations.d.ts +27 -2
- package/bots/BotCalculations.js +69 -6
- package/bots/BotCalculations.js.map +1 -1
- package/bots/BotEvents.d.ts +41 -1
- package/bots/BotEvents.js +22 -0
- package/bots/BotEvents.js.map +1 -1
- package/bots/test/BotCalculationContextTests.js +100 -1
- package/bots/test/BotCalculationContextTests.js.map +1 -1
- package/package.json +3 -3
- package/runtime/AuxLibrary.d.ts +12 -1
- package/runtime/AuxLibrary.js +40 -4
- package/runtime/AuxLibrary.js.map +1 -1
- package/runtime/AuxLibraryDefinitions.def +33 -1
|
@@ -1869,6 +1869,16 @@ declare interface EnablePOVAction {
|
|
|
1869
1869
|
center?: { x: number, y: number, z: number };
|
|
1870
1870
|
}
|
|
1871
1871
|
|
|
1872
|
+
/**
|
|
1873
|
+
* Defines an interface that represents a wake lock configuration.
|
|
1874
|
+
*/
|
|
1875
|
+
declare interface WakeLockConfiguration {
|
|
1876
|
+
/**
|
|
1877
|
+
* Whether the wake lock is enabled.
|
|
1878
|
+
*/
|
|
1879
|
+
enabled: boolean;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1872
1882
|
/**
|
|
1873
1883
|
* An event that is used to send a command to the Jitsi Meet API.
|
|
1874
1884
|
*/
|
|
@@ -2258,6 +2268,11 @@ declare interface RegisterPrefixOptions {
|
|
|
2258
2268
|
* The possible languages that prefixes can use.
|
|
2259
2269
|
*/
|
|
2260
2270
|
language?: 'javascript' | 'typescript' | 'json' | 'jsx' | 'tsx' | 'text';
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* The name of the prefix.
|
|
2274
|
+
*/
|
|
2275
|
+
name?: string;
|
|
2261
2276
|
}
|
|
2262
2277
|
|
|
2263
2278
|
|
|
@@ -9020,6 +9035,21 @@ interface Os {
|
|
|
9020
9035
|
*/
|
|
9021
9036
|
disablePointOfView(): EnablePOVAction;
|
|
9022
9037
|
|
|
9038
|
+
/**
|
|
9039
|
+
* Requests a wake lock that will keep the device screen awake.
|
|
9040
|
+
*/
|
|
9041
|
+
requestWakeLock(): Promise<void>;
|
|
9042
|
+
|
|
9043
|
+
/**
|
|
9044
|
+
* Disables the wake lock.
|
|
9045
|
+
*/
|
|
9046
|
+
disableWakeLock(): Promise<void>;
|
|
9047
|
+
|
|
9048
|
+
/**
|
|
9049
|
+
* Retrieves the current wake lock configuration.
|
|
9050
|
+
*/
|
|
9051
|
+
getWakeLockConfiguration(): Promise<WakeLockConfiguration>;
|
|
9052
|
+
|
|
9023
9053
|
/**
|
|
9024
9054
|
* Gets the dimension that is loaded into the given portal for the player.
|
|
9025
9055
|
* If no dimension is loaded, then null is returned.
|
|
@@ -10825,8 +10855,10 @@ interface Math {
|
|
|
10825
10855
|
* Returns null if the ray does not intersect the ground plane.
|
|
10826
10856
|
* @param origin The origin of the ray.
|
|
10827
10857
|
* @param direction The direction that the ray is pointing.
|
|
10858
|
+
* @param planeNormal The direction that the face of the plane is pointing.
|
|
10859
|
+
* @param planeOrigin The position that the center of the plane should pass through.
|
|
10828
10860
|
*/
|
|
10829
|
-
intersectPlane(origin: Point3D, direction: Point3D): Vector3;
|
|
10861
|
+
intersectPlane(origin: Point3D, direction: Point3D, planeNormal?: Point3D, planeOrigin?: Point3D): Vector3;
|
|
10830
10862
|
|
|
10831
10863
|
/**
|
|
10832
10864
|
* Gets the position offset for the given bot anchor point.
|