refac: rsc -> rc
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user