magicrealmsshared 0.6.20 → 0.6.22
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GameCharacter } from "../types/charcter";
|
|
2
|
-
import { Auth_Token, PlayerClientData, Well } from "../types/types";
|
|
2
|
+
import { Auth_Token, Country, PlayerClientData, Well } from "../types/types";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
export declare const ResponseCode: {
|
|
5
5
|
readonly SUCCESS: 0;
|
|
@@ -67,6 +67,7 @@ export declare const DATA_UPDATE_COMMAND = "DATA_UPDATE";
|
|
|
67
67
|
export type DATA_UPDATE<T> = {
|
|
68
68
|
drop?: string[];
|
|
69
69
|
wells?: Well<T>[];
|
|
70
|
+
countries?: Country<T>[];
|
|
70
71
|
};
|
|
71
72
|
export declare const POSUPDATE_COMMAND = "POSUPDATE";
|
|
72
73
|
export declare const POSUPDATE_SCHEME: z.ZodObject<{
|
package/dist/geo/chunks.js
CHANGED
|
@@ -24,7 +24,7 @@ function ChunkCoordinatesOfGEOJSONPoint(point) {
|
|
|
24
24
|
Math.floor(point.coordinates[1] / exports.ChunkSizeLat),
|
|
25
25
|
];
|
|
26
26
|
}
|
|
27
|
-
//Long-Min,
|
|
27
|
+
//[[Long-Min, Lat-Min], [Long-Max, Lat-Max]]
|
|
28
28
|
function ChunkBoundaries(chunkCoordinates) {
|
|
29
29
|
return [
|
|
30
30
|
[chunkCoordinates[0] * exports.ChunkSizeLong, chunkCoordinates[1] * exports.ChunkSizeLat],
|
package/dist/types/types.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export type Player<IDFormat, DateFormat> = ObjectWithId<IDFormat> & {
|
|
|
40
40
|
export type PlayerClientData = Omit<Player<string, number>, "passwordHash" | "passwordSalt">;
|
|
41
41
|
export type Country<T> = ObjectWithId<T> & {
|
|
42
42
|
name: string;
|
|
43
|
+
origin: GeoJSON.Point;
|
|
43
44
|
pos: GeoJSON.Polygon;
|
|
44
45
|
};
|
|
45
46
|
export type Well<T> = WorldObject<T> & {
|