Skip to content
On this page

Module: game/player

Interfaces

Type Aliases

LayerData

Ƭ LayerData<T>: { [P in keyof T]?: T[P] extends infer U[] ? 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] }

Type parameters

Name
T

Defined in

profectus/src/game/player.ts:27


Player

Ƭ Player: ProxiedWithState<PlayerData>

Defined in

profectus/src/game/player.ts:25

Variables

default

default: { autosave: boolean ; devSpeed: null | number ; id: string ; keepGoing: boolean ; layers: { [x: string]: {} & { [ProxyState]: LayerData<unknown>; [ProxyPath]: string[]; }; } & { [ProxyPath]: string[] ; [ProxyState]: Record<string, LayerData<unknown>> } ; modID: string ; modVersion: string ; name: string ; offlineProd: boolean ; offlineTime: null | number ; tabs: string[] & { [ProxyPath]: string[] ; [ProxyState]: string[] } ; time: number ; timePlayed: number } & { [ProxyPath]: string[] ; [ProxyState]: PlayerData }

Defined in

profectus/src/game/player.ts:136

Functions

stringifySave

stringifySave(player): string

Parameters

NameType
playerPlayerData

Returns

string