

Nextrek
@ 1348
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
{ "uid": "2B397FD47122884B501AAA977B26809FD1CC", "isLoaded": true, "lastModificationTime": 0, "items": { "name": "CustomEffectCollection", "type": "game_script", "order": 1, "content": "# ===================================================================\n#\n# Script: CustomEffectCollection\n#\n# $$COPYRIGHT$$\n#\n# ===================================================================\nclass CustomEffectCollection extends gs.EffectCollection\n ###*\n * An effect collection stores all effects by name. So if you add custom effects, you\n * have to create an own class and inherit from gs.EffectCollection and add your\n * own effects in the constructor. It is important to put the super-call at the end and not\n * at the beginning.\n *\n * @module gs\n * @class CircularDistortionEffect\n * @extends gs.CircularDistortionEffect\n * @memberof gs\n * @constructor\n ###\n constructor: ->\n ###*\n * A circular distortion effect.\n * @property circularDistortion\n * @type gs.CircularDistortionEffect\n ###\n @circularDistortion = new gs.CircularDistortionEffect()\n \n # It is important to call super at the end, not at the beginning.\n super\n \n# This line is very important, it patches the old gs.EffectCollection reference so that everywhere in\n# the engine gs.EffectCollection now refers to your custom effect collection. Just uncomment it\n# to use your custom effects.\n# gs.EffectCollection = CustomEffectCollection", "parentId": "11501DAC2D04074EBF7A77A258891F726F54", "folder": false, "scriptType": 0, "compiledContent": "var CustomEffectCollection,\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\nCustomEffectCollection = (function(superClass) {\n extend(CustomEffectCollection, superClass);\n\n\n /**\n * An effect collection stores all effects by name. So if you add custom effects, you\n * have to create an own class and inherit from gs.EffectCollection and add your\n * own effects in the constructor. It is important to put the super-call at the end and not\n * at the beginning.\n *\n * @module gs\n * @class CircularDistortionEffect\n * @extends gs.CircularDistortionEffect\n * @memberof gs\n * @constructor\n */\n\n function CustomEffectCollection() {\n\n /**\n * A circular distortion effect.\n * @property circularDistortion\n * @type gs.CircularDistortionEffect\n */\n this.circularDistortion = new gs.CircularDistortionEffect();\n CustomEffectCollection.__super__.constructor.apply(this, arguments);\n }\n\n return CustomEffectCollection;\n\n})(gs.EffectCollection);\n\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLElBQUEsc0JBQUE7RUFBQTs7O0FBQU07Ozs7QUFDRjs7Ozs7Ozs7Ozs7OztFQVlhLGdDQUFBOztBQUNUOzs7OztJQUtBLElBQUMsQ0FBQSxrQkFBRCxHQUEwQixJQUFBLEVBQUUsQ0FBQyx3QkFBSCxDQUFBO0lBRzFCLHlEQUFBLFNBQUE7RUFUUzs7OztHQWJvQixFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIjID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbiNcbiMgICBTY3JpcHQ6IEN1c3RvbUVmZmVjdENvbGxlY3Rpb25cbiNcbiMgICAkJENPUFlSSUdIVCQkXG4jXG4jID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbmNsYXNzIEN1c3RvbUVmZmVjdENvbGxlY3Rpb24gZXh0ZW5kcyBncy5FZmZlY3RDb2xsZWN0aW9uXG4gICAgIyMjKlxuICAgICogQW4gZWZmZWN0IGNvbGxlY3Rpb24gc3RvcmVzIGFsbCBlZmZlY3RzIGJ5IG5hbWUuIFNvIGlmIHlvdSBhZGQgY3VzdG9tIGVmZmVjdHMsIHlvdVxuICAgICogaGF2ZSB0byBjcmVhdGUgYW4gb3duIGNsYXNzIGFuZCBpbmhlcml0IGZyb20gZ3MuRWZmZWN0Q29sbGVjdGlvbiBhbmQgYWRkIHlvdXJcbiAgICAqIG93biBlZmZlY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