Skip to content

@ue-too/ecs / index / serializeComponentSchema

関数: serializeComponentSchema()

serializeComponentSchema(schema): SerializedComponentSchema

定義: index.ts:387

Serialize a component schema to a JSON-compatible format. Note: Only works with global symbols (created via Symbol.for).

パラメータ

schema

ComponentSchema

The component schema to serialize

戻り値

SerializedComponentSchema

A serializable representation of the schema

Throws

Error if component name is not a global symbol