Home > @esengine/ecs-framework-monorepo > Entity > (constructor)
Entity.(constructor)
构造函数
Signature:
typescript
constructor(name: string, id: number);
Parameters
Parameter | Type | Description |
---|---|---|
name | string | 实体名称 |
id | number | 实体唯一标识符 |