Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{
"uid": "B333A615K38FAA45B8SA13EE1AADAF98EFAF",
"isLoaded": true,
"lastModificationTime": 0,
"items": {
"name": "Component",
"type": "game_script",
"order": 0,
"content": "# ===================================================================\n#\n# Script: Component\n#\n# $$COPYRIGHT$$\n#\n# ===================================================================\nclass Component\n ###*\n * The base class of all components. A component defines a certain piece of\n * game logic. \n *\n * @module gs\n * @class Component\n * @memberof gs\n * @constructor\n ###\n constructor: ->\n ###*\n * The associated game object. A component only be part of one game object at the same time.\n * @property object\n * @type gs.Object_Base\n * @default null\n ###\n @object = null\n \n ###*\n * Indicates if the component is disposed. A disposed component cannot be used anymore.\n * @property disposed\n * @type boolean\n * @default false\n ###\n @disposed = no\n \n ###*\n * An optional unique id. The component can be accessed through this ID using the gs.Object_Base.findComponentById method.\n * @property id\n * @type string\n * @default null\n ###\n @id = null\n \n ###*\n * Indicates if the component is setup.\n * @property isSetup\n * @type boolean\n * @default no\n ###\n @isSetup = no\n \n ###*\n * Called when the component is added to a new object.\n * @method setup\n ###\n setup: -> \n @isSetup = yes\n \n ###*\n * Disposes the component. The component will be removed from the game object\n * automatically.\n * @method dispose\n ###\n dispose: -> @disposed = yes\n \n ###*\n * Updates the component. Needs to be implemented in derived class.\n * @method update\n ###\n update: ->\n \ngs.Component = Component",
"parentId": "D3325122KACDEA4515SB731E37A42B9D779F",
"folder": false,
"compiledContent": "var Component;\n\nComponent = (function() {\n\n /**\n * The base class of all components. A component defines a certain piece of\n * game logic. \n *\n * @module gs\n * @class Component\n * @memberof gs\n * @constructor\n */\n function Component() {\n\n /**\n * The associated game object. A component only be part of one game object at the same time.\n * @property object\n * @type gs.Object_Base\n * @default null\n */\n this.object = null;\n\n /**\n * Indicates if the component is disposed. A disposed component cannot be used anymore.\n * @property disposed\n * @type boolean\n * @default false\n */\n this.disposed = false;\n\n /**\n * An optional unique id. The component can be accessed through this ID using the gs.Object_Base.findComponentById method.\n * @property id\n * @type string\n * @default null\n */\n this.id = null;\n\n /**\n * Indicates if the component is setup.\n * @property isSetup\n * @type boolean\n * @default no\n */\n this.isSetup = false;\n }\n\n\n /**\n * Called when the component is added to a new object.\n * @method setup\n */\n\n Component.prototype.setup = function() {\n return this.isSetup = true;\n };\n\n\n /**\n * Disposes the component. The component will be removed from the game object\n * automatically.\n * @method dispose\n */\n\n Component.prototype.dispose = function() {\n return this.disposed = true;\n };\n\n\n /**\n * Updates the component. Needs to be implemented in derived class.\n * @method update\n */\n\n Component.prototype.update = function() {};\n\n return Component;\n\n})();\n\ngs.Component = Component;\n\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLElBQUE7O0FBQU07O0FBQ0Y7Ozs7Ozs7OztFQVNhLG1CQUFBOztBQUNUOzs7Ozs7SUFNQSxJQUFDLENBQUEsTUFBRCxHQUFVOztBQUVWOzs7Ozs7SUFNQSxJQUFDLENBQUEsUUFBRCxHQUFZOztBQUVaOzs7Ozs7SUFNQSxJQUFDLENBQUEsRUFBRCxHQUFNOztBQUVOOzs7Ozs7SUFNQSxJQUFDLENBQUEsT0FBRCxHQUFXO0VBL0JGOzs7QUFpQ2I7Ozs7O3NCQUlBLEtBQUEsR0FBTyxTQUFBO1dBQ0gsSUFBQyxDQUFBLE9BQUQsR0FBVztFQURSOzs7QUFHUDs7Ozs7O3NCQUtBLE9BQUEsR0FBUyxTQUFBO1dBQUcsSUFBQyxDQUFBLFFBQUQsR0FBWTtFQUFmOzs7QUFFVDs7Ozs7c0JBSUEsTUFBQSxHQUFRLFNBQUEsR0FBQTs7Ozs7O0FBRVosRUFBRSxDQUFDLFNBQUgsR0FBZSIsInNvdXJjZXNDb250ZW50IjpbIiMgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuI1xuIyAgIFNjcmlwdDogQ29tcG9uZW50XG4jXG4jICAgJCRDT1BZUklHSFQkJFxuI1xuIyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5jbGFzcyBDb21wb25lbnRcbiAgICAjIyMqXG4gICAgKiBUaGUgYmFzZSBjbGFzcyBvZiBhbGwgY29tcG9uZW50cy4gQSBjb21wb25lbnQgZGVmaW5lcyBhIGNlcnRhaW4gcGllY2Ugb2ZcbiAgICAqIGdhbWUgbG9naWMuIFxuICAgICpcbiAgICAqIEBtb2R1bGUgZ3NcbiAgICAqIEBjbGFzcyBDb21wb25lbnRcbiAgICAqIEBtZW1iZXJvZiBnc1xuICAgICogQGNvbnN0cnVjdG9yXG4gICAgIyMjXG4gICAgY29uc3RydWN0b3I6IC0+XG4gICAgICAgICMjIypcbiAgICAgICAgKiBUaGUgYXNzb2NpYXRlZCBnYW1lIG9iamVjdC4gQSBjb21wb25lbnQgb25seSBiZSBwYXJ0IG9mIG9uZSBnYW1lIG9iamVjdCBhdCB0aGUgc2FtZSB0aW1lLlxuICAgICAgICAqIEBwcm9wZXJ0eSBvYmplY3RcbiAgICAgICAgKiBAdHlwZSBncy5PYmplY3RfQmFzZVxuICAgICAgICAqIEBkZWZhdWx0IG51bGxcbiAgICAgICAgIyMjXG4gICAgICAgIEBvYmplY3QgPSBudWxsXG4gICAgICAgIFxuICAgICAgICAjIyMqXG4gICAgICAgICogSW5kaWNhdGVzIGlmIHRoZSBjb21wb25lbnQgaXMgZGlzcG9zZWQuIEEgZGlzcG9zZWQgY29tcG9uZW50IGNhbm5vdCBiZSB1c2VkIGFueW1vcmUuXG4gICAgICAgICogQHByb3BlcnR5IGRpc3Bvc2VkXG4gICAgICAgICogQHR5cGUgYm9vbGVhblxuICAgICAgICAqIEBkZWZhdWx0IGZhbHNlXG4gICAgICAgICMjI1xuICAgICAgICBAZGlzcG9zZ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WRzIHRvIGJlIGltcGxlbWVudGVkIGluIGRlcml2ZWQgY2xhc3MuXG4gICAgKiBAbWV0aG9kIHVwZGF0ZVxuICAgICMjI1xuICAgIHVwZGF0ZTogLT5cbiAgICAgICAgXG5ncy5Db21wb25lbnQgPSBDb21wb25lbnQiXX0=\n//# sourceURL=Component_4.js"
},
"summary": [
"name",
"type",
"order"
]
}
|
Revision |
Author |
Commited |
Message |
1084
|
MOliva
|
Fri 11 May, 2018 12:41:55 +0000 |
|