diff --git a/src/story/Story.js b/src/story/Story.js index 0161e843..67871089 100755 --- a/src/story/Story.js +++ b/src/story/Story.js @@ -663,7 +663,7 @@ FORGE.Story.prototype.destroy = function() Object.defineProperty(FORGE.Story.prototype, "config", { /** @this {FORGE.Story} */ - get: function () + get: function() { return this._config; } @@ -724,7 +724,7 @@ Object.defineProperty(FORGE.Story.prototype, "description", Object.defineProperty(FORGE.Story.prototype, "scenes", { /** @this {FORGE.Story} */ - get: function () + get: function() { return FORGE.UID.get(this._scenes); } @@ -738,7 +738,7 @@ Object.defineProperty(FORGE.Story.prototype, "scenes", Object.defineProperty(FORGE.Story.prototype, "scene", { /** @this {FORGE.Story} */ - get: function () + get: function() { if(this._sceneUid === null || this._sceneUid === "") { @@ -755,18 +755,38 @@ Object.defineProperty(FORGE.Story.prototype, "scene", } }); +/** +* Get all the sceneUids. +* @name FORGE.Story#sceneUids +* @readonly +* @type {Array} +*/ +Object.defineProperty(FORGE.Story.prototype, "sceneUids", +{ + /** @this {FORGE.Story} */ + get: function() + { + return this._scenes; + } +}); + /** * Get the current sceneUid. * @name FORGE.Story#sceneUid -* @readonly * @type {string} */ Object.defineProperty(FORGE.Story.prototype, "sceneUid", { /** @this {FORGE.Story} */ - get: function () + get: function() { return this._sceneUid; + }, + + /** @this {FORGE.Story} */ + set: function(value) + { + this.loadScene(value); } }); @@ -793,7 +813,7 @@ Object.defineProperty(FORGE.Story.prototype, "groups", Object.defineProperty(FORGE.Story.prototype, "group", { /** @this {FORGE.Story} */ - get: function () + get: function() { if(this._groupUid === null || this._groupUid === "") { @@ -810,18 +830,38 @@ Object.defineProperty(FORGE.Story.prototype, "group", } }); +/** +* Get all the group Uids. +* @name FORGE.Story#groupUids +* @readonly +* @type {Array} +*/ +Object.defineProperty(FORGE.Story.prototype, "groupUids", +{ + /** @this {FORGE.Story} */ + get: function() + { + return this._groups; + } +}); + /** * Get the current groupUid. * @name FORGE.Story#groupUid -* @readonly * @type {string} */ Object.defineProperty(FORGE.Story.prototype, "groupUid", { /** @this {FORGE.Story} */ - get: function () + get: function() { return this._groupUid; + }, + + /** @this {FORGE.Story} */ + set: function(value) + { + this.loadGroup(value); } });