37 lines
910 B
TypeScript
37 lines
910 B
TypeScript
import {IFurnitureData, IProductData} from "@nitro/renderer";
|
|
|
|
import {IPurchasableOffer} from "./IPurchasableOffer";
|
|
|
|
export class PlacedObjectPurchaseData {
|
|
constructor(
|
|
public readonly roomId: number,
|
|
public readonly objectId: number,
|
|
public readonly category: number,
|
|
public readonly wallLocation: string,
|
|
public readonly x: number,
|
|
public readonly y: number,
|
|
public readonly direction: number,
|
|
public readonly offer: IPurchasableOffer
|
|
) {}
|
|
|
|
public get offerId(): number {
|
|
return this.offer.offerId;
|
|
}
|
|
|
|
public get productClassId(): number {
|
|
return this.offer.product.productClassId;
|
|
}
|
|
|
|
public get productData(): IProductData {
|
|
return this.offer.product.productData;
|
|
}
|
|
|
|
public get furniData(): IFurnitureData {
|
|
return this.offer.product.furnitureData;
|
|
}
|
|
|
|
public get extraParam(): string {
|
|
return this.offer.product.extraParam;
|
|
}
|
|
}
|