组件注册与添加

This commit is contained in:
YHH
2025-10-14 23:42:06 +08:00
parent 1cf5641c4c
commit 3a5e73266e
10 changed files with 481 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
import { Component } from '@esengine/ecs-framework';
export class SpriteComponent extends Component {
public texture: string = '';
public width: number = 100;
public height: number = 100;
public alpha: number = 1;
}