Skip to content

@ue-too/ecs / index / createSystemName

函式: createSystemName()

createSystemName(name): symbol

定義於: index.ts:287

Helper function to create a system name from a string. This creates a unique symbol for the system name.

參數

name

string

The string name for the system

回傳

symbol

A unique symbol for the system name

範例

typescript
const Movement = createSystemName('Movement');
coordinator.registerSystem(Movement, movementSystem);