magicrealmsshared 0.1.3 → 0.1.5
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/package.json +1 -1
- package/websocketCommands.ts +15 -1
package/package.json
CHANGED
package/websocketCommands.ts
CHANGED
|
@@ -8,5 +8,19 @@ export const DATA_UPDATE_COMMAND = "DATA_UPDATE";
|
|
|
8
8
|
export type DATA_UPDATE_CLIENT = DATA_UPDATE<string>;
|
|
9
9
|
export type DATA_UPDATE_SERVER = DATA_UPDATE<ObjectId>;
|
|
10
10
|
type DATA_UPDATE<T> = {
|
|
11
|
-
wells: Well<T
|
|
11
|
+
wells: Well<T>[],
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const POSUPDATE_COMMAND = "POSUPDATE";
|
|
15
|
+
export type POSUPDATE_CLIENT = POSUPDATE;
|
|
16
|
+
export type POSUPDATE_SERVER = POSUPDATE;
|
|
17
|
+
type POSUPDATE = {
|
|
18
|
+
pos: GeoJSON.Point,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The precision of the pos.
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
*/
|
|
25
|
+
pre: number,
|
|
12
26
|
}
|