New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@esengine/ai

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esengine/ai - npm Package Compare versions

Comparing version
2.0.23
to
2.0.24
+2
-5
package.json
{
"name": "@esengine/ai",
"version": "2.0.23",
"version": "2.0.24",
"description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能AI系统库:行为树、实用AI和有限状态机",

@@ -49,6 +49,3 @@ "main": "index.cjs",

},
"sideEffects": false,
"dependencies": {
"@esengine/ecs-framework": "^2.1.20"
}
"sideEffects": false
}

@@ -14,4 +14,4 @@ # BehaviourTree-AI

- 🔧 **可配置** - 灵活的配置选项,支持开发和生产环境
- 🎯 **ECS集成** - 完整的ECS框架集成支持,提供组件、系统和预制模板
## 🚀 快速开始

@@ -70,32 +70,4 @@

### ECS框架集成
与[@esengine/ecs-framework](https://www.npmjs.com/package/@esengine/ecs-framework)完美集成:
```typescript
import { Scene, Entity, Component } from '@esengine/ecs-framework';
import { BehaviorTreeSystem, BehaviorTreeFactory } from '@esengine/ai/ecs-integration';
// 创建场景和系统
const scene = new Scene();
const behaviorTreeSystem = new BehaviorTreeSystem();
scene.addEntityProcessor(behaviorTreeSystem);
// 创建AI实体
const entity = new Entity("AI", 1);
BehaviorTreeFactory.addBehaviorTreeToEntity(
entity,
(builder) => builder.action((entity) => {
console.log("AI正在思考...");
return TaskStatus.Success;
}),
{ debugMode: true }
);
scene.addEntity(entity);
scene.update(); // 在游戏循环中调用
```
详细ECS集成文档请查看:[ecs-integration/README.md](./ecs-integration/README.md)
## 📚 详细教程

@@ -102,0 +74,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display