Files
discord-decomp/modules/collectibles/records/NameplateRecord.tsx
T
2026-11-01 12:12:55 +02:00

33 lines
1.1 KiB
TypeScript

// Metro module 1899 (f1900).
import BaseCollectiblesItemRecord from "./BaseCollectiblesItemRecord";
import { CollectiblesItemType } from "../../../_bundle/Module1901";
import { $callWithNewTarget } from "../../../_hermes/prelude";
class NameplateRecord extends BaseCollectiblesItemRecord {
type = CollectiblesItemType.NAMEPLATE;
constructor(a0) {
super(a0);
this.asset = a0.asset;
this.label = a0.label;
this.palette = a0.palette;
}
static fromServer(a0) {
const r2 = {
...Reflect.get(Object.getPrototypeOf(NameplateRecord), "fromServer", this).call(this, a0),
...a0
};
const prototypeOf = Object.getPrototypeOf(NameplateRecord);
const r20 = Object.create(NameplateRecord.prototype);
const r22 = $callWithNewTarget(prototypeOf, r20, NameplateRecord, r2);
const r23 = r22 instanceof Object ? r22 : r20;
r23.type = CollectiblesItemType.NAMEPLATE;
r23.asset = r2.asset;
r23.label = r2.label;
r23.palette = r2.palette;
return r23;
}
}
export default NameplateRecord;
export function isNameplateRecord(a0) {
return a0 instanceof NameplateRecord;
}