60e1b13a-8736-453f-a60f-565b0323ed76.js 1.72 KB
"use strict";
cc._RF.push(module, '60e1bE6hzZFP6YPVlsDI+12', 'BlockSkillBase');
// scripts/kernel/battle/map/blockSkill/BlockSkillBase.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlockSkillBase = void 0;
/**格子技能,只有一个实例,复制格子时,owner会指向新的格子 */
var BlockSkillBase = /** @class */ (function () {
    // protected _skillSpine: string = '';
    // get skillSpine(): string { return this._skillSpine; }
    function BlockSkillBase(skillId, $owner) {
        this._skillImg = '';
        this._enable = true;
        this.owner = $owner;
        this._skillId = skillId;
    }
    Object.defineProperty(BlockSkillBase.prototype, "skillId", {
        get: function () { return this._skillId; },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(BlockSkillBase.prototype, "skillImg", {
        get: function () { return this._skillImg; },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(BlockSkillBase.prototype, "enable", {
        get: function () { return this._enable; },
        enumerable: false,
        configurable: true
    });
    //#region life cycle
    BlockSkillBase.prototype.onDead = function () {
    };
    /**复制格子时,会重新触发一次 */
    BlockSkillBase.prototype.onAddedToBlock = function () {
    };
    BlockSkillBase.prototype.onCollisionToBall = function () {
    };
    BlockSkillBase.prototype.destroy = function () {
    };
    //#endregion
    //#region public
    BlockSkillBase.prototype.setSkillEnable = function (value) {
        this._enable = value;
    };
    return BlockSkillBase;
}());
exports.BlockSkillBase = BlockSkillBase;

cc._RF.pop();