60e1b13a-8736-453f-a60f-565b0323ed76.js
1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"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();