mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
feat(livestreamassist): expose current cluster string
This commit is contained in:
1 parent
3e3e995d55
commit
c0c4f51312
9 files changed
+59
-4
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user