Update api

This commit is contained in:
Bill 2021-09-29 22:31:43 -04:00
parent eadb3d5d1e
commit 4b31308e75
3 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,20 @@
import { IFurnitureData } from '@nitrots/nitro-renderer';
import { GetSessionDataManager } from '.';
import { ProductTypeEnum } from '../../../views/catalog/common/ProductTypeEnum';
export function GetFurnitureData(furniClassId: number, productType: string): IFurnitureData
{
let furniData: IFurnitureData = null;
switch(productType.toUpperCase())
{
case ProductTypeEnum.FLOOR:
furniData = GetSessionDataManager().getFloorItemData(furniClassId);
break;
case ProductTypeEnum.WALL:
furniData = GetSessionDataManager().getWallItemData(furniClassId);
break;
}
return furniData;
}

View File

@ -3,6 +3,7 @@ export * from './CreateRoomSession';
export * from './GetCanStandUp'; export * from './GetCanStandUp';
export * from './GetCanUseExpression'; export * from './GetCanUseExpression';
export * from './GetClubMemberLevel'; export * from './GetClubMemberLevel';
export * from './GetFurnitureData';
export * from './GetFurnitureDataForProductOffer'; export * from './GetFurnitureDataForProductOffer';
export * from './GetFurnitureDataForRoomObject'; export * from './GetFurnitureDataForRoomObject';
export * from './GetOwnPosture'; export * from './GetOwnPosture';