@markind-gg/come-come 1.0.23 → 1.0.26
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/dist/main.js +6 -2
- package/dist/manifest.json +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -14067,14 +14067,18 @@ function z1(t, e) {
|
|
|
14067
14067
|
var p, s, D, g;
|
|
14068
14068
|
const l = document.getElementById(t);
|
|
14069
14069
|
if (!l) throw new Error("container not found");
|
|
14070
|
-
const n = _1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = M1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (D = e.gameState) == null ? void 0 : D.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = wv(e.players, a, u), f = Uv(a, n), o = jv(n)
|
|
14070
|
+
const n = _1((p = e.gameState) == null ? void 0 : p.selectedModeId), a = M1((s = e.gameState) == null ? void 0 : s.selectedMapId), u = (D = e.gameState) == null ? void 0 : D.teamAssignments, i = ((g = e.gameState) == null ? void 0 : g.currentPlayerId) ?? e.me.id, c = wv(e.players, a, u), f = Uv(a, n), o = jv(n);
|
|
14071
|
+
e.log.log("mount", { mode: n, mazeIndex: a, players: c.length, ghosts: f.length, firstPlayerId: i });
|
|
14072
|
+
const d = xp.createRoot(l, Np("come-come"));
|
|
14071
14073
|
return d.render(
|
|
14072
14074
|
ln.createElement(A1, {
|
|
14073
14075
|
sdk: e,
|
|
14074
14076
|
firstPlayerId: i,
|
|
14075
14077
|
init: { mode: n, mazeIndex: a, players: c, ghosts: f, panicTriggerSecond: o, teamAssignments: u }
|
|
14076
14078
|
})
|
|
14077
|
-
), () =>
|
|
14079
|
+
), () => {
|
|
14080
|
+
e.log.log("unmount"), d.unmount();
|
|
14081
|
+
};
|
|
14078
14082
|
}
|
|
14079
14083
|
export {
|
|
14080
14084
|
er as MAP_INDEX,
|
package/dist/manifest.json
CHANGED