mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Update api
This commit is contained in:
parent
eadb3d5d1e
commit
4b31308e75
20
src/api/nitro/session/GetFurnitureData.ts
Normal file
20
src/api/nitro/session/GetFurnitureData.ts
Normal 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;
|
||||||
|
}
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user