magicrealmsshared 0.6.26 → 0.6.27

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.
@@ -5,8 +5,9 @@ export type ObjectWithId<T> = {
5
5
  _id: T;
6
6
  defVersion: number;
7
7
  };
8
+ export type WorldPoint = Pick<GeoJSON.Point, "type" | "coordinates">;
8
9
  export type WorldObject<T> = ObjectWithId<T> & {
9
- pos: GeoJSON.Point;
10
+ pos: WorldPoint;
10
11
  };
11
12
  export type Privileges = {
12
13
  all?: boolean;
@@ -40,7 +41,7 @@ export type Player<IDFormat, DateFormat> = ObjectWithId<IDFormat> & {
40
41
  export type PlayerClientData = Omit<Player<string, number>, "passwordHash" | "passwordSalt">;
41
42
  export type Country<T> = ObjectWithId<T> & {
42
43
  name: string;
43
- origin: GeoJSON.Point;
44
+ origin: WorldPoint;
44
45
  pos: GeoJSON.Polygon;
45
46
  };
46
47
  export type Well<T> = WorldObject<T> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magicrealmsshared",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {