Moved Player initialization point (#452)

Now initialized as side effect in PlayerObject, instead of in Player file that is imported everywhere.
This commit is contained in:
David Walker
2023-03-28 21:30:27 -07:00
committed by GitHub
parent 798da75d83
commit 8445af5f2b
15 changed files with 43 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ import * as generalMethods from "./PlayerObjectGeneralMethods";
import * as serverMethods from "./PlayerObjectServerMethods";
import * as workMethods from "./PlayerObjectWorkMethods";
import { setPlayer } from "../../Player";
import { Sleeve } from "../Sleeve/Sleeve";
import { PlayerOwnedSourceFile } from "../../SourceFile/PlayerOwnedSourceFile";
import { Exploit } from "../../Exploits/Exploit";
@@ -172,4 +173,6 @@ export class PlayerObject extends Person implements IPlayer {
}
}
setPlayer(new PlayerObject());
Reviver.constructors.PlayerObject = PlayerObject;