@caisual/kit 0.24.0 → 0.25.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.
- package/README.md +1 -1
- package/dist/host.js +12 -8
- package/dist/kit.js +2 -2
- package/dist/kit.js.map +3 -3
- package/dist/node.js +123 -264
- package/dist/runtime.js +65 -116
- package/dist/types/contracts/i18n.d.ts +0 -1
- package/dist/types/contracts/keys.d.ts +1 -1
- package/dist/types/contracts/manifest.d.ts +0 -5
- package/dist/types/contracts/runtime.d.ts +7 -7
- package/dist/types/host/index.d.ts +1 -0
- package/dist/types/node/index.d.ts +1 -1
- package/dist/types/node/websocket.d.ts +5 -17
- package/dist/types/protocollo.d.ts +11 -11
- package/dist/types/stanza/nucleo.d.ts +3 -4
- package/dist/types/stanza/tipi.d.ts +3 -6
- package/dist/types/voce/index.d.ts +3 -0
- package/package.json +7 -2
|
@@ -7,14 +7,14 @@ export declare class NucleoStanza {
|
|
|
7
7
|
private readonly adattatore;
|
|
8
8
|
private dati;
|
|
9
9
|
private readonly room;
|
|
10
|
+
private readonly tickRate;
|
|
10
11
|
private readonly frequenza;
|
|
11
12
|
private readonly kickRichiesti;
|
|
12
13
|
private readonly voceGuadagniCambiati;
|
|
13
14
|
private fineRichiesta;
|
|
14
15
|
private applicandoAzioni;
|
|
15
16
|
private ultimoStatoOsservato;
|
|
16
|
-
private
|
|
17
|
-
private voceDaPersistire;
|
|
17
|
+
private salvataggioImmediato;
|
|
18
18
|
private constructor();
|
|
19
19
|
static apri(definizione: unknown, manifest: ManifestStanza, adattatore: AdattatoreStanza): Promise<NucleoStanza>;
|
|
20
20
|
private static verificaManifest;
|
|
@@ -92,10 +92,9 @@ export declare class NucleoStanza {
|
|
|
92
92
|
private pulisciGuadagni;
|
|
93
93
|
private terminaPerStato;
|
|
94
94
|
private terminaInterna;
|
|
95
|
-
private registraCpu;
|
|
96
|
-
private persisti;
|
|
97
95
|
private persistiEProgramma;
|
|
98
96
|
private serveTick;
|
|
97
|
+
private terminaSeVuota;
|
|
99
98
|
private terminaSeInattiva;
|
|
100
99
|
private aggiornaProgrammazione;
|
|
101
100
|
}
|
|
@@ -38,7 +38,6 @@ export interface AdattatoreStanza {
|
|
|
38
38
|
connessioniAttive(): readonly string[];
|
|
39
39
|
ora(): number;
|
|
40
40
|
giorno?(ora: number): string;
|
|
41
|
-
misuraCpu(): number;
|
|
42
41
|
rivediVoce(): void;
|
|
43
42
|
programmaTick(intervalloMs: number | null): void;
|
|
44
43
|
programmaSveglia(ora: number | null): Promise<void>;
|
|
@@ -69,20 +68,20 @@ export interface FinePersistita {
|
|
|
69
68
|
at: number;
|
|
70
69
|
}
|
|
71
70
|
export interface StatoPersistito {
|
|
72
|
-
versione:
|
|
71
|
+
versione: 2;
|
|
73
72
|
origin: 'player' | 'matchmaking';
|
|
74
73
|
id: string;
|
|
75
74
|
mode: string | null;
|
|
76
75
|
status: RoomStatus;
|
|
77
76
|
tick: number;
|
|
78
|
-
|
|
77
|
+
prossimoSalvataggioAt?: number;
|
|
79
78
|
ultimoInputAt: number;
|
|
80
79
|
ultimoCambioStatoAt: number;
|
|
81
80
|
state: JsonValue;
|
|
82
81
|
giocatori: GiocatorePersistito[];
|
|
83
82
|
result: JsonValue | null;
|
|
84
83
|
resultAt: number | null;
|
|
85
|
-
daily
|
|
84
|
+
daily: import('../daily.js').DailyContext;
|
|
86
85
|
rivincita?: {
|
|
87
86
|
keepSetup: boolean;
|
|
88
87
|
} | null;
|
|
@@ -100,8 +99,6 @@ export interface StatoPersistito {
|
|
|
100
99
|
cancellaDopoFlush: boolean;
|
|
101
100
|
tickSincronizzato: number;
|
|
102
101
|
statoSincronizzato: JsonValue;
|
|
103
|
-
durateCpu: number[];
|
|
104
|
-
cpuOltreCento: number;
|
|
105
102
|
voceGuadagni?: Record<string, Record<string, number>>;
|
|
106
103
|
}
|
|
107
104
|
export type EsitoIngresso = {
|
|
@@ -53,6 +53,8 @@ export declare class VoceClient implements Voice {
|
|
|
53
53
|
private timerConnessione;
|
|
54
54
|
private cancellaAttesaConnessione;
|
|
55
55
|
private timerRiconnessione;
|
|
56
|
+
private timerAbbonamento;
|
|
57
|
+
private tentativoAbbonamento;
|
|
56
58
|
private ultimoAudioMic;
|
|
57
59
|
private sequenzaRichieste;
|
|
58
60
|
private generazione;
|
|
@@ -88,6 +90,7 @@ export declare class VoceClient implements Voice {
|
|
|
88
90
|
private attendiConnessione;
|
|
89
91
|
private accodaRiconciliazione;
|
|
90
92
|
private riconciliaSfu;
|
|
93
|
+
private riprovaAbbonamento;
|
|
91
94
|
private riconciliaMesh;
|
|
92
95
|
private creaMesh;
|
|
93
96
|
private offriMesh;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caisual/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Client and server kit for Caisual games",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://caisual.com",
|
|
@@ -64,10 +64,15 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@caisual/contracts": "workspace:*",
|
|
67
|
-
"@cloudflare/vitest-
|
|
67
|
+
"@cloudflare/vitest-plugin": "^1.8.3",
|
|
68
68
|
"@types/node": "^26.2.0",
|
|
69
|
+
"@types/ws": "^8.18.1",
|
|
69
70
|
"esbuild": "^0.28.1",
|
|
71
|
+
"proper-lockfile": "^4.1.2",
|
|
70
72
|
"typescript": "^7.0.2",
|
|
71
73
|
"vitest": "^4.1.10"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"ws": "^8.21.0"
|
|
72
77
|
}
|
|
73
78
|
}
|