wdpapi
Version:
51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on
70 lines (69 loc) • 2.18 kB
TypeScript
import { EntityEidType, BasicInfoAtomType, VisibleAtomType, EntityFlagAtomType, EntityOutlinerAtomType, IColorRGBA } from '../data-type';
/**
* @interface IMaterial
* @param {string} componentName (optional)
* @param {number} materialIndex (optional)
* @param {string | null} mIEid (optional)
*/
export interface IMaterial {
componentName?: string;
materialIndex?: number;
mIEid?: string | null;
}
/**
* @interface MaterialAtomType
* @param {Array<IMaterial>} changedMaterialInfo
*/
export interface MaterialAtomType {
changedMaterialInfo: Array<IMaterial>;
bReceivesDecals: boolean;
}
/**
* @interface MIParamsAtomType
* @param {string | null} mid
* @param {number} uTiling
* @param {number} vTiling
* @param {number} uPanner
* @param {number} vPanner
* @param {number} rotationAngle
* @param {number} roughness_Intensity
* @param {number} opacity
*/
export interface MIParamsAtomType {
mid: string | null;
uTiling: number;
vTiling: number;
uPanner: number;
vPanner: number;
rotationAngle: number;
diffuse_Color: IColorRGBA | string;
roughness_Intensity: number;
opacity: number;
}
/**
* @interface MIParamsType
* @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<VisibleAtomType>,Partial<EntityFlagAtomType>
* @param {Partial<MIParamsAtomType>} materialStyle (optional)
*/
export interface MIParamsType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
materialStyle?: Partial<MIParamsAtomType>;
seedId?: string | null;
}
/**
* @interface IGenerate
* @param {Partial<MIParamsAtomType>} MIParamsAtom
* @param {Partial<BasicInfoAtomType>} BasicInfoAtom
* @param {Partial<EntityFlagAtomType>} EntityFlagAtom
*/
export interface IGenerate {
MIParamsAtom?: Partial<MIParamsAtomType>;
BasicInfoAtom?: Partial<BasicInfoAtomType>;
EntityFlagAtom?: Partial<EntityFlagAtomType>;
EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>;
}
export interface IentitySlotParams {
entity: Record<string, any>;
meshName: string;
MaterialIndex: number;
bHighlight: boolean;
}