]>
git.r.bdr.sh - rbdr/sumo/blob - lib/components/dash.js
4f482aa7ab95a4fdb280815d458bd0e0da388cf5
1 import { Component
} from '@serpentity/serpentity';
4 * Component that stores a dash skill
6 * @extends {external:Serpentity.Component}
8 * @param {object} config a configuration object to extend.
10 export default class DashComponent
extends Component
{
16 * The properthy that holds the dash state
18 * @property {boolean} dashing
20 * @memberof DashComponent
22 this.dashing
= this.dashing
|| false;
25 * Whether the dash is locked from occuring
27 * @property {boolean} locked
29 * @memberof DashComponent
31 this.locked
= this.locked
|| false;
34 * Cooldown before lock is removed
36 * @property {number} cooldown
38 * @memberof DashComponent
40 this.cooldown
= this.cooldown
|| 3000;
45 * @property {number} currentCooldown
47 * @memberof DashComponent
49 this.currentCooldown
= 0;