Skip to content

Profectus / game/player / LayerData

Type Alias: LayerData<T> ​

LayerData<T>: { [P in keyof T]?: T[P] extends (infer U)[] ? Record<string, LayerData<U>> : T[P] extends Record<string, never> ? never : T[P] extends Ref<infer S> ? S : T[P] extends object ? LayerData<T[P]> : T[P] }

A layer's save data. Automatically unwraps refs.

Type Parameters ​

• T

Defined in ​

profectus/src/game/player.ts:35