mirror of
https://gitee.com/sli97/behavior-eden-coco-plugin.git
synced 2025-10-09 16:46:13 +00:00
init
This commit is contained in:
16
dist/runtime/node/condition/ConditionCommon.js
vendored
Normal file
16
dist/runtime/node/condition/ConditionCommon.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const index_1 = require("../index");
|
||||
const decorator_1 = require("../../core/decorator");
|
||||
let ConditionCommon = class ConditionCommon extends index_1.Condition {
|
||||
};
|
||||
ConditionCommon = __decorate([
|
||||
(0, decorator_1.btclass)("ConditionCommon")
|
||||
], ConditionCommon);
|
||||
exports.default = ConditionCommon;
|
23
dist/runtime/node/condition/ConditionHP.js
vendored
Normal file
23
dist/runtime/node/condition/ConditionHP.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const index_1 = require("../index");
|
||||
const decorator_1 = require("../../core/decorator");
|
||||
let ConditionHP = class ConditionHP extends index_1.Condition {
|
||||
onUpdate() {
|
||||
// console.log("Blackboard.Instance.hp", Blackboard.Instance.hp, ",ConditionHP", Blackboard.Instance.hp >= 100);
|
||||
// if (Blackboard.Instance.hp >= 100) {
|
||||
// return NodeStatus.Success;
|
||||
// }
|
||||
return index_1.NodeStatus.Success;
|
||||
}
|
||||
};
|
||||
ConditionHP = __decorate([
|
||||
(0, decorator_1.btclass)("ConditionHP")
|
||||
], ConditionHP);
|
||||
exports.default = ConditionHP;
|
17
dist/runtime/node/condition/index.js
vendored
Normal file
17
dist/runtime/node/condition/index.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./ConditionCommon"), exports);
|
Reference in New Issue
Block a user