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:
17
dist/runtime/node/action/ActionCommon.js
vendored
Normal file
17
dist/runtime/node/action/ActionCommon.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"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 });
|
||||
exports.ActionCommon = void 0;
|
||||
const index_1 = require("../index");
|
||||
const decorator_1 = require("../../core/decorator");
|
||||
let ActionCommon = class ActionCommon extends index_1.Action {
|
||||
};
|
||||
ActionCommon = __decorate([
|
||||
(0, decorator_1.btclass)("ActionCommon")
|
||||
], ActionCommon);
|
||||
exports.ActionCommon = ActionCommon;
|
26
dist/runtime/node/action/Log.js
vendored
Normal file
26
dist/runtime/node/action/Log.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"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 });
|
||||
exports.Log = void 0;
|
||||
const index_1 = require("../index");
|
||||
const decorator_1 = require("../../core/decorator");
|
||||
let Log = class Log extends index_1.Action {
|
||||
constructor(text = "log") {
|
||||
super();
|
||||
this.text = "log";
|
||||
this.text = text;
|
||||
}
|
||||
onUpdate() {
|
||||
console.log(this.text);
|
||||
return index_1.NodeStatus.Success;
|
||||
}
|
||||
};
|
||||
Log = __decorate([
|
||||
(0, decorator_1.btclass)("Log")
|
||||
], Log);
|
||||
exports.Log = Log;
|
35
dist/runtime/node/action/Wait.js
vendored
Normal file
35
dist/runtime/node/action/Wait.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"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 });
|
||||
exports.Wait = void 0;
|
||||
const index_1 = require("../index");
|
||||
const decorator_1 = require("../../core/decorator");
|
||||
let Wait = class Wait extends index_1.Action {
|
||||
constructor(duration = 4000) {
|
||||
super();
|
||||
this.startTime = 0;
|
||||
this.duration = 2000;
|
||||
this.duration = duration;
|
||||
}
|
||||
onUpdate() {
|
||||
return index_1.NodeStatus.Success;
|
||||
return index_1.NodeStatus.Running;
|
||||
}
|
||||
onStart() {
|
||||
super.onStart();
|
||||
console.log("Wait onStart");
|
||||
}
|
||||
onEnd() {
|
||||
super.onEnd();
|
||||
console.log("Wait onEnd");
|
||||
}
|
||||
};
|
||||
Wait = __decorate([
|
||||
(0, decorator_1.btclass)("Wait")
|
||||
], Wait);
|
||||
exports.Wait = Wait;
|
17
dist/runtime/node/action/index.js
vendored
Normal file
17
dist/runtime/node/action/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("./ActionCommon"), exports);
|
Reference in New Issue
Block a user