transmit companion to remote players
This commit is contained in:
@@ -4,6 +4,7 @@ const playerNameKey = 'playerName';
|
||||
const selectedPlayerKey = 'selectedPlayer';
|
||||
const customCursorPositionKey = 'customCursorPosition';
|
||||
const characterLayersKey = 'characterLayers';
|
||||
const companionKey = 'companion';
|
||||
const gameQualityKey = 'gameQuality';
|
||||
const videoQualityKey = 'videoQuality';
|
||||
const audioPlayerVolumeKey = 'audioVolume';
|
||||
@@ -47,6 +48,13 @@ class LocalUserStore {
|
||||
return JSON.parse(localStorage.getItem(characterLayersKey) || "null");
|
||||
}
|
||||
|
||||
setCompanion(companion: string): void {
|
||||
localStorage.setItem(companionKey, companion);
|
||||
}
|
||||
getCompanion(): string|null {
|
||||
return localStorage.getItem(companionKey);
|
||||
}
|
||||
|
||||
setGameQualityValue(value: number): void {
|
||||
localStorage.setItem(gameQualityKey, '' + value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user