UNPKG

camelot-unchained

Version:
47 lines (37 loc) 2.08 kB
/** * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var ComponentBranch = function ComponentBranch() { _classCallCheck(this, ComponentBranch); }; exports.ComponentBranch = ComponentBranch; var AbilityComponent = function () { function AbilityComponent() { var abilityComponent = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; _classCallCheck(this, AbilityComponent); this.id = abilityComponent.id || ""; this.icon = abilityComponent.icon || ""; this.cooldown = abilityComponent.cooldown || 0; this.duration = abilityComponent.duration || 0; this.name = abilityComponent.name || ""; this.tooltip = abilityComponent.tooltip || ""; this.abilityTags = abilityComponent.abilityTags || []; //.... } _createClass(AbilityComponent, null, [{ key: "create", value: function create() { var a = new AbilityComponent(); return a; } }]); return AbilityComponent; }(); exports.AbilityComponent = AbilityComponent; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = AbilityComponent;