Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,33 @@
import { Texture } from 'pixi.js';
import { IGraphicAssetCollection } from '../../asset';
import { IEventDispatcher } from '../../common';
import { IRoomObject } from '../../room';
import { IFurnitureData } from '../session';
import { IPetColorResult } from './IPetColorResult';
import { IRoomContentListener } from './IRoomContentListener';
export interface IRoomContentLoader
{
init(): Promise<void>;
processFurnitureData(furnitureData: IFurnitureData[]): void;
downloadAsset(type: string): Promise<void>;
isLoaderType(type: string): boolean;
getCollection(name: string): IGraphicAssetCollection;
getPlaceholderName(type: string): string;
getCategoryForType(type: string): number;
setRoomObjectRoomId(object: IRoomObject, roomId: string): void;
getFurnitureFloorNameForTypeId(typeId: number): string;
getFurnitureWallNameForTypeId(typeId: number, extra?: string): string;
getFurnitureFloorColorIndex(typeId: number): number;
getFurnitureWallColorIndex(typeId: number): number;
getImage(name: string): HTMLImageElement;
getAssetIconUrl(type: string, colorIndex: string): string;
addAssetToCollection(collectionName: string, assetName: string, texture: Texture, override?: boolean): boolean;
getPetNameForType(type: number): string;
downloadImage(id: number, type: string, param: string, events?: IEventDispatcher): boolean;
getRoomObjectAdUrl(type: string): string;
getPetColorResult(petIndex: number, paletteIndex: number): IPetColorResult;
getPetColorResultsForTag(petIndex: number, tagName: string): IPetColorResult[];
setIconListener(listener: IRoomContentListener): void;
pets: { [index: string]: number };
}