feat(livestreamassist): expose current cluster string

This commit is contained in:
soarqin committed 2026-09-20 14:46:15 +08:00
1 parent 3e3e995d55
commit c0c4f51312
9 files changed
+59 -4

No files matched your search

+13
View File
@@ -126,6 +126,19 @@
});
};
GameQuery.prototype.getClusterString = function () {
var self = this;
var context = {};
return this._read({ root: "game", path: ["gameDesc", "clusterString"] }, context).then(function (result) {
self._assertSession(context);
return {
clusterString: result.value == null ? "" : String(result.value),
sessionId: result.sessionId,
gameTick: result.gameTick
};
});
};
GameQuery.prototype._factoryIds = function (scope, context) {
if (scope === "localPlanet") {
return this._read({ root: "localPlanet", path: ["factoryIndex"] }, context).then(function (result) {