Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
    "uid": "921D4291K554AA4E8AS8B5DEFA84F1B78AA5",
    "isLoaded": true,
    "lastModificationTime": 0,
    "items": {
        "name": "Component_Animation",
        "type": "game_script",
        "order": 0,
        "content": "# ===================================================================\n#\n#   Script: Component_Animation\n#\n#   $$COPYRIGHT$$\n#\n# ===================================================================\nclass Component_Animation extends gs.Component\n    ###*\n    * The base-class of all animation components. An animation-component\n    * executes a certain animation on a game object. The type of the animation depends\n    * on the component. <br>\n    * <br>\n    * In regular, animation components a used together with the gs.Component_Animator\n    * component.\n    *\n    * @module gs\n    * @class Component_Animation\n    * @extends gs.Component\n    * @memberof gs\n    * @constructor\n    ###\n    constructor: ->\n        super\n        \n        @name = \"animation\"\n    \n    ###*\n    * Updates the animation. \n    *\n    * @method update\n    ###    \n    update: ->\n        @object.needsFullUpdate = yes\n     \n    ###*\n    * Skips the animation. That is used to skip an animation if the user\n    * wants to skip very fast through a visual novel scene.\n    *\n    * @method skip\n    ###    \n    skip: ->\n        if @easing?.duration > GameManager.tempSettings.skipTime\n            if GameManager.tempSettings.skipTime == 0\n                @easing.time = @easing.duration\n            else\n                @easing.duration = GameManager.tempSettings.skipTime\n                @easing.time = 0\n    \n    ###*\n    * Indicates if instant-skipping is enabled. In that case, there shouldn't be any delay and animation\n    * must finish immediately and call its callback. It is mostly used for live-preview purposes.\n    *\n    * @method isInstantSkip\n    * @return {boolean} If <b>true</b>, instant-skipping is enabled. Otherwise <b>false</b>.\n    ###                \n    isInstantSkip: -> GameManager.tempSettings.skip and GameManager.tempSettings.skipTime == 0\n        \n    \ngs.Component_Animation = Component_Animation",
        "parentId": "A8E9945CKEE5CA4855SAC81E480CB8098E0E",
        "folder": false,
        "compiledContent": "var Component_Animation,\n  extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },\n  hasProp = {}.hasOwnProperty;\n\nComponent_Animation = (function(superClass) {\n  extend(Component_Animation, superClass);\n\n\n  /**\n  * The base-class of all animation components. An animation-component\n  * executes a certain animation on a game object. The type of the animation depends\n  * on the component. <br>\n  * <br>\n  * In regular, animation components a used together with the gs.Component_Animator\n  * component.\n  *\n  * @module gs\n  * @class Component_Animation\n  * @extends gs.Component\n  * @memberof gs\n  * @constructor\n   */\n\n  function Component_Animation() {\n    Component_Animation.__super__.constructor.apply(this, arguments);\n    this.name = \"animation\";\n  }\n\n\n  /**\n  * Updates the animation. \n  *\n  * @method update\n   */\n\n  Component_Animation.prototype.update = function() {\n    return this.object.needsFullUpdate = true;\n  };\n\n\n  /**\n  * Skips the animation. That is used to skip an animation if the user\n  * wants to skip very fast through a visual novel scene.\n  *\n  * @method skip\n   */\n\n  Component_Animation.prototype.skip = function() {\n    var ref;\n    if (((ref = this.easing) != null ? ref.duration : void 0) > GameManager.tempSettings.skipTime) {\n      if (GameManager.tempSettings.skipTime === 0) {\n        return this.easing.time = this.easing.duration;\n      } else {\n        this.easing.duration = GameManager.tempSettings.skipTime;\n        return this.easing.time = 0;\n      }\n    }\n  };\n\n\n  /**\n  * Indicates if instant-skipping is enabled. In that case, there shouldn't be any delay and animation\n  * must finish immediately and call its callback. It is mostly used for live-preview purposes.\n  *\n  * @method isInstantSkip\n  * @return {boolean} If <b>true</b>, instant-skipping is enabled. Otherwise <b>false</b>.\n   */\n\n  Component_Animation.prototype.isInstantSkip = function() {\n    return GameManager.tempSettings.skip && GameManager.tempSettings.skipTime === 0;\n  };\n\n  return Component_Animation;\n\n})(gs.Component);\n\ngs.Component_Animation = Component_Animation;\n\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLElBQUEsbUJBQUE7R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bnRTa2lwOiAtPiBHYW1lTWFuYWdlci50ZW1wU2V0dGluZ3Muc2tpcCBhbmQgR2FtZU1hbmFnZXIudGVtcFNldHRpbmdzLnNraXBUaW1lID09IDBcbiAgICAgICAgXG4gICAgXG5ncy5Db21wb25lbnRfQW5pbWF0aW9uID0gQ29tcG9uZW50X0FuaW1hdGlvbiJdfQ==\n//# sourceURL=Component_Animation_12.js"
    },
    "summary": [
        "name",
        "type",
        "order"
    ]
}

Commits for Nextrek/s2s/data/921D4291K554AA4E8AS8B5DEFA84F1B78AA5.json

Diff revisions: vs.
Revision Author Commited Message
1086 Diff Diff ASorrentino picture ASorrentino Fri 11 May, 2018 21:50:37 +0000
1084 MOliva picture MOliva Fri 11 May, 2018 12:41:55 +0000