mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 10:13:52 +01:00
13 lines
419 B
TypeScript
13 lines
419 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 as any);
|
|
Player.exploits = sanitizeExploits(Player.exploits);
|
|
}
|