mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
add purchasedPlayer to RFA server data (#1103)
This commit is contained in:
parent
9b483bdd8a
commit
aba2336093
@ -40,7 +40,7 @@ export interface FileServer {
|
|||||||
server: string;
|
server: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RFAServerData = Pick<BaseServer, "hostname" | "hasAdminRights">;
|
export type RFAServerData = Pick<BaseServer, "hostname" | "hasAdminRights" | "purchasedByPlayer">;
|
||||||
|
|
||||||
export function isFileData(p: unknown): p is FileData {
|
export function isFileData(p: unknown): p is FileData {
|
||||||
const pf = p as FileData;
|
const pf = p as FileData;
|
||||||
|
@ -113,9 +113,10 @@ export const RFARequestHandler: Record<string, (message: RFAMessage) => void | R
|
|||||||
},
|
},
|
||||||
|
|
||||||
getAllServers: function (msg: RFAMessage): RFAMessage {
|
getAllServers: function (msg: RFAMessage): RFAMessage {
|
||||||
const servers = GetAllServers().map(({ hostname, hasAdminRights }) => ({
|
const servers = GetAllServers().map(({ hostname, hasAdminRights, purchasedByPlayer }) => ({
|
||||||
hostname,
|
hostname,
|
||||||
hasAdminRights,
|
hasAdminRights,
|
||||||
|
purchasedByPlayer,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return new RFAMessage({ result: servers, id: msg.id });
|
return new RFAMessage({ result: servers, id: msg.id });
|
||||||
|
Loading…
Reference in New Issue
Block a user