Skip to content

@ue-too/ecs / createSystemName

Function: createSystemName()

createSystemName(name): symbol

Defined in: index.ts:287

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

Parameters

name

string

The string name for the system

Returns

symbol

A unique symbol for the system name

Example

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