refac: rsc -> rc

This commit is contained in:
2024-03-15 16:13:27 +00:00
parent 6a6bdba08b
commit 78bcc95e2e
10 changed files with 46 additions and 46 deletions
+3 -3
View File
@@ -15,7 +15,7 @@ export class City extends LazyEntityUpdater<ICityEntity>{
constructor(
raw: ICityEntity,
protected readonly rsc: IResourceController,
protected readonly rc: IResourceController,
bootstrapInfo: {
general: GeneralID[];
}
@@ -27,7 +27,7 @@ export class City extends LazyEntityUpdater<ICityEntity>{
private _bootstrapInfo?: ConstructorParameters<typeof City>[2];
public bootstrap(){
const rsc = this.rsc;
const rc = this.rc;
const bootstrapInfo = must(this._bootstrapInfo);
delete this._bootstrapInfo;
@@ -35,7 +35,7 @@ export class City extends LazyEntityUpdater<ICityEntity>{
const nationID = this._raw.nationID;
for(const id of bootstrapInfo.general){
const general = must(rsc.general(id));
const general = must(rc.general(id));
this.notifyJoinGeneral(general);
}
}