Methods
addOnDataChangedListener
- addOnDataChangedListener(func: ((networkData: SyncedNetworkData, isExternalChange: boolean) => void)): void
Parameters
func: ((networkData: SyncedNetworkData, isExternalChange: boolean) => void)
Parameters
isExternalChange: boolean
Returns void
Returns void
addVerifier
- addVerifier(key: any, func: ((key: any, newValue: any) => void)): void
Parameters
key: any
func: ((key: any, newValue: any) => void)
- (key: any, newValue: any): void
Returns void
getBoolean
- getBoolean(key: any, fallback?: boolean): boolean
Parameters
key: any
Optional fallback: boolean
Returns boolean
getDouble
- getDouble(key: any, fallback?: number): number
Parameters
key: any
Optional fallback: number
Returns number
getFloat
- getFloat(key: any, fallback?: number): number
Parameters
key: any
Optional fallback: number
Returns number
getInt
- getInt(key: any, fallback?: number): number
Parameters
key: any
Optional fallback: number
Returns number
getLong
- getLong(key: any, fallback?: number): number
Parameters
key: any
Optional fallback: number
Returns number
getString
- getString(key: any, fallback?: string): string
Parameters
key: any
Optional fallback: string
Returns string
putBoolean
- putBoolean(key: any, value: boolean): void
putDouble
- putDouble(key: any, value: number): void
putFloat
- putFloat(key: any, value: number): void
putInt
- putInt(key: any, value: number): void
putLong
- putLong(key: any, value: number): void
putString
- putString(key: any, value: string): void
Class to work with values, synchronized between server and all clients