mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 00:17:32 +01:00
13 lines
417 B
TypeScript
13 lines
417 B
TypeScript
import { PlayerObject } from "./PersonObjects/Player/PlayerObject";
|
|
import { sanitizeExploits } from "./Exploits/Exploit";
|
|
|
|
import { Reviver } from "./utils/JSONReviver";
|
|
|
|
export let Player = new PlayerObject();
|
|
|
|
export function loadPlayer(saveString: string): void {
|
|
Player = JSON.parse(saveString, Reviver);
|
|
Player.money = parseFloat(Player.money + "");
|
|
Player.exploits = sanitizeExploits(Player.exploits);
|
|
}
|