UNPKG

camelot-unchained

Version:
52 lines (51 loc) 1.64 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/. */ import abilityTags from '../constants/abilityConstants/abilityTags'; import componentType from '../constants/abilityConstants/componentType'; import componentPath from '../constants/abilityConstants/componentPath'; import componentSubType from '../constants/abilityConstants/componentSubType'; import componentBranchState from '../constants/abilityConstants/componentBranchState'; import stats from './Stats'; export declare class ComponentBranch { parts: any[]; state: componentBranchState; } export interface ComponentSlot { type: componentType; subType: componentSubType; x: number; y: number; parents: ComponentSlot[]; children: ComponentSlot[]; branch: ComponentBranch; component: AbilityComponent; isDisabled: boolean; tooltip: string; originalSubType: componentSubType; queuedAnimation: string; } export declare class AbilityComponent { cooldown: number; duration: number; tooltip: string; id: string; baseComponentID: number; name: string; description: string; icon: string; type: componentType; subType: componentSubType; path: componentPath; abillityStats: stats; abilityTags: abilityTags[]; slot: ComponentSlot; rank: number; isTrained: boolean; isHalted: boolean; constructor(abilityComponent?: AbilityComponent); static create(): AbilityComponent; } export default AbilityComponent;