@kuncat/avoidant 0.1.5 → 0.2.1

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.
Files changed (56) hide show
  1. package/README.md +26 -0
  2. package/dist/components/AvoidantGame.svelte +240 -148
  3. package/dist/components/IdleBillboard.svelte +27 -0
  4. package/dist/components/IdleBillboard.svelte.d.ts +8 -0
  5. package/dist/components/MapControls.svelte +158 -0
  6. package/dist/components/MapControls.svelte.d.ts +7 -0
  7. package/dist/components/board.svelte +241 -100
  8. package/dist/components/board.svelte.d.ts +3 -0
  9. package/dist/components/fragment.glsl +29 -19
  10. package/dist/components/map-camera.d.ts +10 -0
  11. package/dist/components/map-camera.js +73 -0
  12. package/dist/components/terrain-depth-sort.d.ts +17 -0
  13. package/dist/components/terrain-depth-sort.js +63 -0
  14. package/dist/components/vertex.glsl +12 -7
  15. package/dist/generated/shared-constants.d.ts +0 -3
  16. package/dist/generated/shared-constants.js +0 -3
  17. package/dist/paraglide/messages/_index.d.ts +14 -0
  18. package/dist/paraglide/messages/_index.js +15 -1
  19. package/dist/paraglide/messages/cells_per_face.d.ts +18 -0
  20. package/dist/paraglide/messages/cells_per_face.js +29 -0
  21. package/dist/paraglide/messages/faces_count.d.ts +18 -0
  22. package/dist/paraglide/messages/faces_count.js +29 -0
  23. package/dist/paraglide/messages/field_cell_density.d.ts +16 -0
  24. package/dist/paraglide/messages/field_cell_density.js +29 -0
  25. package/dist/paraglide/messages/field_map_shape.d.ts +16 -0
  26. package/dist/paraglide/messages/field_map_shape.js +29 -0
  27. package/dist/paraglide/messages/field_radius.d.ts +16 -0
  28. package/dist/paraglide/messages/field_radius.js +29 -0
  29. package/dist/paraglide/messages/field_radius_x.d.ts +16 -0
  30. package/dist/paraglide/messages/field_radius_x.js +29 -0
  31. package/dist/paraglide/messages/field_radius_y.d.ts +16 -0
  32. package/dist/paraglide/messages/field_radius_y.js +29 -0
  33. package/dist/paraglide/messages/field_radius_z.d.ts +16 -0
  34. package/dist/paraglide/messages/field_radius_z.js +29 -0
  35. package/dist/paraglide/messages/field_spikiness.d.ts +16 -0
  36. package/dist/paraglide/messages/field_spikiness.js +29 -0
  37. package/dist/paraglide/messages/field_subdivisions.d.ts +16 -0
  38. package/dist/paraglide/messages/field_subdivisions.js +29 -0
  39. package/dist/paraglide/messages/field_surface_detail.d.ts +16 -0
  40. package/dist/paraglide/messages/field_surface_detail.js +29 -0
  41. package/dist/paraglide/messages/shape_label.d.ts +26 -0
  42. package/dist/paraglide/messages/shape_label.js +55 -0
  43. package/dist/paraglide/messages/text_density_summary.d.ts +19 -0
  44. package/dist/paraglide/messages/text_density_summary.js +29 -0
  45. package/dist/paraglide/messages/text_invite_after_opening.d.ts +16 -0
  46. package/dist/paraglide/messages/text_invite_after_opening.js +29 -0
  47. package/dist/paraglide/messages/tutorial_intro.d.ts +1 -1
  48. package/dist/paraglide/messages/tutorial_intro.js +3 -3
  49. package/dist/wasm/avoidant_wasm.d.ts +77 -35
  50. package/dist/wasm/avoidant_wasm.js +236 -223
  51. package/dist/wasm/avoidant_wasm_bg.wasm +0 -0
  52. package/dist/wasm/avoidant_wasm_bg.wasm.d.ts +27 -27
  53. package/dist/workers/mapgen-client.js +2 -0
  54. package/dist/workers/mapgen.worker.d.ts +2 -0
  55. package/dist/workers/mapgen.worker.js +3 -0
  56. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Radius X" |
5
+ *
6
+ * @param {Field_Radius_XInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_radius_x: ((inputs?: Field_Radius_XInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_XInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_Radius_XInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_Radius_XInputs */
7
+
8
+ const en_field_radius_x = /** @type {(inputs: Field_Radius_XInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Radius X`)
10
+ };
11
+
12
+ const bn_field_radius_x = /** @type {(inputs: Field_Radius_XInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`ব্যাসার্ধ X`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Radius X" |
20
+ *
21
+ * @param {Field_Radius_XInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_radius_x = /** @type {((inputs?: Field_Radius_XInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_XInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_radius_x(inputs)
28
+ return bn_field_radius_x(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Radius Y" |
5
+ *
6
+ * @param {Field_Radius_YInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_radius_y: ((inputs?: Field_Radius_YInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_YInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_Radius_YInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_Radius_YInputs */
7
+
8
+ const en_field_radius_y = /** @type {(inputs: Field_Radius_YInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Radius Y`)
10
+ };
11
+
12
+ const bn_field_radius_y = /** @type {(inputs: Field_Radius_YInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`ব্যাসার্ধ Y`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Radius Y" |
20
+ *
21
+ * @param {Field_Radius_YInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_radius_y = /** @type {((inputs?: Field_Radius_YInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_YInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_radius_y(inputs)
28
+ return bn_field_radius_y(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Radius Z" |
5
+ *
6
+ * @param {Field_Radius_ZInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_radius_z: ((inputs?: Field_Radius_ZInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_ZInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_Radius_ZInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_Radius_ZInputs */
7
+
8
+ const en_field_radius_z = /** @type {(inputs: Field_Radius_ZInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Radius Z`)
10
+ };
11
+
12
+ const bn_field_radius_z = /** @type {(inputs: Field_Radius_ZInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`ব্যাসার্ধ Z`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Radius Z" |
20
+ *
21
+ * @param {Field_Radius_ZInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_radius_z = /** @type {((inputs?: Field_Radius_ZInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_ZInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_radius_z(inputs)
28
+ return bn_field_radius_z(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Spikiness" |
5
+ *
6
+ * @param {Field_SpikinessInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_spikiness: ((inputs?: Field_SpikinessInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_SpikinessInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_SpikinessInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_SpikinessInputs */
7
+
8
+ const en_field_spikiness = /** @type {(inputs: Field_SpikinessInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Spikiness`)
10
+ };
11
+
12
+ const bn_field_spikiness = /** @type {(inputs: Field_SpikinessInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`তীক্ষ্ণতা`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Spikiness" |
20
+ *
21
+ * @param {Field_SpikinessInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_spikiness = /** @type {((inputs?: Field_SpikinessInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_SpikinessInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_spikiness(inputs)
28
+ return bn_field_spikiness(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Subdivisions" |
5
+ *
6
+ * @param {Field_SubdivisionsInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_subdivisions: ((inputs?: Field_SubdivisionsInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_SubdivisionsInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_SubdivisionsInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_SubdivisionsInputs */
7
+
8
+ const en_field_subdivisions = /** @type {(inputs: Field_SubdivisionsInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Subdivisions`)
10
+ };
11
+
12
+ const bn_field_subdivisions = /** @type {(inputs: Field_SubdivisionsInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`উপবিভাজন`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Subdivisions" |
20
+ *
21
+ * @param {Field_SubdivisionsInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_subdivisions = /** @type {((inputs?: Field_SubdivisionsInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_SubdivisionsInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_subdivisions(inputs)
28
+ return bn_field_subdivisions(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Polyhedron faces" |
5
+ *
6
+ * @param {Field_Surface_DetailInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const field_surface_detail: ((inputs?: Field_Surface_DetailInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Surface_DetailInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Field_Surface_DetailInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Field_Surface_DetailInputs */
7
+
8
+ const en_field_surface_detail = /** @type {(inputs: Field_Surface_DetailInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Polyhedron faces`)
10
+ };
11
+
12
+ const bn_field_surface_detail = /** @type {(inputs: Field_Surface_DetailInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`বহুতলকের পৃষ্ঠ`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Polyhedron faces" |
20
+ *
21
+ * @param {Field_Surface_DetailInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const field_surface_detail = /** @type {((inputs?: Field_Surface_DetailInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Surface_DetailInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_field_surface_detail(inputs)
28
+ return bn_field_surface_detail(inputs)
29
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * | kind | output |
3
+ * | --- | --- |
4
+ * | "flat" | "Flat" |
5
+ * | "tetrahedron" | "Tetrahedron (4 faces)" |
6
+ * | "cube" | "Cube (6 faces)" |
7
+ * | "octahedron" | "Octahedron (8 faces)" |
8
+ * | "dodecahedron" | "Dodecahedron (12 faces)" |
9
+ * | "icosahedron" | "Icosahedron (20 faces)" |
10
+ * | "geodesicIcosphere" | "Geodesic icosphere" |
11
+ * | "spheroid" | "Spheroid" |
12
+ * | * | "{kind}" |
13
+ *
14
+ * @param {Shape_LabelInputs} inputs
15
+ * @param {{ locale?: "en" | "bn" }} options
16
+ * @returns {LocalizedString}
17
+ */
18
+ export const shape_label: ((inputs: Shape_LabelInputs, options?: {
19
+ locale?: "en" | "bn";
20
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Shape_LabelInputs, {
21
+ locale?: "en" | "bn";
22
+ }, {}>;
23
+ export type LocalizedString = import("../runtime.js").LocalizedString;
24
+ export type Shape_LabelInputs = {
25
+ kind: NonNullable<unknown>;
26
+ };
@@ -0,0 +1,55 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{ kind: NonNullable<unknown> }} Shape_LabelInputs */
7
+
8
+ const en_shape_label = /** @type {(inputs: Shape_LabelInputs) => LocalizedString} */ (i) => {
9
+ if (i?.kind === "flat") return /** @type {LocalizedString} */ (`Flat`);
10
+ if (i?.kind === "tetrahedron") return /** @type {LocalizedString} */ (`Tetrahedron (4 faces)`);
11
+ if (i?.kind === "cube") return /** @type {LocalizedString} */ (`Cube (6 faces)`);
12
+ if (i?.kind === "octahedron") return /** @type {LocalizedString} */ (`Octahedron (8 faces)`);
13
+ if (i?.kind === "dodecahedron") return /** @type {LocalizedString} */ (`Dodecahedron (12 faces)`);
14
+ if (i?.kind === "icosahedron") return /** @type {LocalizedString} */ (`Icosahedron (20 faces)`);
15
+ if (i?.kind === "geodesicIcosphere") return /** @type {LocalizedString} */ (`Geodesic icosphere`);
16
+ if (i?.kind === "spheroid") return /** @type {LocalizedString} */ (`Spheroid`);
17
+ return /** @type {LocalizedString} */ (`${i?.kind}`)
18
+
19
+ };
20
+
21
+ const bn_shape_label = /** @type {(inputs: Shape_LabelInputs) => LocalizedString} */ (i) => {
22
+ if (i?.kind === "flat") return /** @type {LocalizedString} */ (`সমতল`);
23
+ if (i?.kind === "tetrahedron") return /** @type {LocalizedString} */ (`টেট্রাহেড্রন (৪ মুখ)`);
24
+ if (i?.kind === "cube") return /** @type {LocalizedString} */ (`ঘনক (৬ মুখ)`);
25
+ if (i?.kind === "octahedron") return /** @type {LocalizedString} */ (`অষ্টভুজ (৮ মুখ)`);
26
+ if (i?.kind === "dodecahedron") return /** @type {LocalizedString} */ (`দ্বাদশভুজ (১২ মুখ)`);
27
+ if (i?.kind === "icosahedron") return /** @type {LocalizedString} */ (`বিংশভুজ (২০ মুখ)`);
28
+ if (i?.kind === "geodesicIcosphere") return /** @type {LocalizedString} */ (`জিওডেসিক গোলক`);
29
+ if (i?.kind === "spheroid") return /** @type {LocalizedString} */ (`গোলকাকার`);
30
+ return /** @type {LocalizedString} */ (`${i?.kind}`)
31
+
32
+ };
33
+
34
+ /**
35
+ * | kind | output |
36
+ * | --- | --- |
37
+ * | "flat" | "Flat" |
38
+ * | "tetrahedron" | "Tetrahedron (4 faces)" |
39
+ * | "cube" | "Cube (6 faces)" |
40
+ * | "octahedron" | "Octahedron (8 faces)" |
41
+ * | "dodecahedron" | "Dodecahedron (12 faces)" |
42
+ * | "icosahedron" | "Icosahedron (20 faces)" |
43
+ * | "geodesicIcosphere" | "Geodesic icosphere" |
44
+ * | "spheroid" | "Spheroid" |
45
+ * | * | "{kind}" |
46
+ *
47
+ * @param {Shape_LabelInputs} inputs
48
+ * @param {{ locale?: "en" | "bn" }} options
49
+ * @returns {LocalizedString}
50
+ */
51
+ export const shape_label = /** @type {((inputs: Shape_LabelInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Shape_LabelInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs, options = {}) => {
52
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
53
+ if (locale === "en") return en_shape_label(inputs)
54
+ return bn_shape_label(inputs)
55
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "{faces} faces · {count} cells total" |
5
+ *
6
+ * @param {Text_Density_SummaryInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const text_density_summary: ((inputs: Text_Density_SummaryInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Text_Density_SummaryInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Text_Density_SummaryInputs = {
17
+ faces: NonNullable<unknown>;
18
+ count: NonNullable<unknown>;
19
+ };
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{ faces: NonNullable<unknown>, count: NonNullable<unknown> }} Text_Density_SummaryInputs */
7
+
8
+ const en_text_density_summary = /** @type {(inputs: Text_Density_SummaryInputs) => LocalizedString} */ (i) => {
9
+ return /** @type {LocalizedString} */ (`${i?.faces} faces · ${i?.count} cells total`)
10
+ };
11
+
12
+ const bn_text_density_summary = /** @type {(inputs: Text_Density_SummaryInputs) => LocalizedString} */ (i) => {
13
+ return /** @type {LocalizedString} */ (`${i?.faces}টি পৃষ্ঠ · মোট ${i?.count}টি ঘর`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "{faces} faces · {count} cells total" |
20
+ *
21
+ * @param {Text_Density_SummaryInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const text_density_summary = /** @type {((inputs: Text_Density_SummaryInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Text_Density_SummaryInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_text_density_summary(inputs)
28
+ return bn_text_density_summary(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Explore a cell before inviting players." |
5
+ *
6
+ * @param {Text_Invite_After_OpeningInputs} inputs
7
+ * @param {{ locale?: "en" | "bn" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const text_invite_after_opening: ((inputs?: Text_Invite_After_OpeningInputs, options?: {
11
+ locale?: "en" | "bn";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Text_Invite_After_OpeningInputs, {
13
+ locale?: "en" | "bn";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Text_Invite_After_OpeningInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Text_Invite_After_OpeningInputs */
7
+
8
+ const en_text_invite_after_opening = /** @type {(inputs: Text_Invite_After_OpeningInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Explore a cell before inviting players.`)
10
+ };
11
+
12
+ const bn_text_invite_after_opening = /** @type {(inputs: Text_Invite_After_OpeningInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`খেলোয়াড়দের আমন্ত্রণ জানানোর আগে একটি ঘর উন্মোচন করুন।`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Explore a cell before inviting players." |
20
+ *
21
+ * @param {Text_Invite_After_OpeningInputs} inputs
22
+ * @param {{ locale?: "en" | "bn" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const text_invite_after_opening = /** @type {((inputs?: Text_Invite_After_OpeningInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Text_Invite_After_OpeningInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_text_invite_after_opening(inputs)
28
+ return bn_text_invite_after_opening(inputs)
29
+ });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * | output |
3
3
  * | --- |
4
- * | "Welcome to Avoidant. Take a moment to get familiar with moving the camera around: on a touchscreen, one-finger dragging will pan the map, and two fingers wil..." |
4
+ * | "Welcome to Avoidant. On any map, drag with one finger or either mouse button to pan. Hold Shift while dragging, or drag with two fingers on a touchscreen, to..." |
5
5
  *
6
6
  * @param {Tutorial_IntroInputs} inputs
7
7
  * @param {{ locale?: "en" | "bn" }} options
@@ -6,17 +6,17 @@ import { getLocale, experimentalStaticLocale } from '../runtime.js';
6
6
  /** @typedef {{}} Tutorial_IntroInputs */
7
7
 
8
8
  const en_tutorial_intro = /** @type {(inputs: Tutorial_IntroInputs) => LocalizedString} */ () => {
9
- return /** @type {LocalizedString} */ (`Welcome to Avoidant. Take a moment to get familiar with moving the camera around: on a touchscreen, one-finger dragging will pan the map, and two fingers will let you rotate and zoom. With a mouse, drag with the left mouse button to pan, drag with the right mouse button to rotate, and scroll to zoom. With a trackpad, holding shift while dragging lets you rotate. When you're comfortable with the controls, press Next to start exploring cells.`)
9
+ return /** @type {LocalizedString} */ (`Welcome to Avoidant. On any map, drag with one finger or either mouse button to pan. Hold Shift while dragging, or drag with two fingers on a touchscreen, to rotate around the map's center. Scroll to zoom toward the cursor, or pinch to zoom around the midpoint between your fingers. Rotation slows down as you zoom in. When you're comfortable with the controls, press Next to start exploring cells.`)
10
10
  };
11
11
 
12
12
  const bn_tutorial_intro = /** @type {(inputs: Tutorial_IntroInputs) => LocalizedString} */ () => {
13
- return /** @type {LocalizedString} */ (`Avoidant-এ স্বাগতম। প্রথমে ক্যামেরা ঘোরানোর সাথে পরিচিত হয়ে নিন: টাচস্ক্রিনে এক আঙুল দিয়ে টেনে ম্যাপ সরানো যায়, আর দুই আঙুলে ঘোরানো ও জুম করা যায়। মাউসে বাম বোতাম টেনে ম্যাপ সরান, ডান বোতাম টেনে ঘোরান, এবং স্ক্রল করে জুম করুন। ট্র্যাকপ্যাডে Shift চেপে টানলে ঘোরানো যাবে। নিয়ন্ত্রণে সাবলীল হলে পরবর্তী চাপুন এবং সেল অনুসন্ধান শুরু করুন।`)
13
+ return /** @type {LocalizedString} */ (`Avoidant-এ স্বাগতম। সব ধরনের ম্যাপে এক আঙুল দিয়ে বা মাউসের বাম বা ডান বোতাম চেপে টানলে ম্যাপ সরানো যায়। Shift চেপে টানলে, অথবা টাচস্ক্রিনে দুই আঙুল দিয়ে টানলে, ম্যাপের কেন্দ্র ঘিরে ঘোরানো যায়। কার্সরের অবস্থানের দিকে জুম করতে স্ক্রল করুন। দুই আঙুল কাছাকাছি বা দূরে সরালে আঙুল দুটির মাঝের বিন্দুকে কেন্দ্র করে জুম হবে। জুম করে কাছে গেলে ঘোরানোর গতি কমে। নিয়ন্ত্রণে সাবলীল হলে পরবর্তী চাপুন এবং সেল অনুসন্ধান শুরু করুন।`)
14
14
  };
15
15
 
16
16
  /**
17
17
  * | output |
18
18
  * | --- |
19
- * | "Welcome to Avoidant. Take a moment to get familiar with moving the camera around: on a touchscreen, one-finger dragging will pan the map, and two fingers wil..." |
19
+ * | "Welcome to Avoidant. On any map, drag with one finger or either mouse button to pan. Hold Shift while dragging, or drag with two fingers on a touchscreen, to..." |
20
20
  *
21
21
  * @param {Tutorial_IntroInputs} inputs
22
22
  * @param {{ locale?: "en" | "bn" }} options