🆙 added Backgrounds to the renderer

This commit is contained in:
duckietm
2025-05-20 14:16:05 +02:00
parent e0c0c06c99
commit 7c40e69c75
10 changed files with 157 additions and 3 deletions
@@ -0,0 +1,21 @@
import { IMessageComposer } from '@nitrots/api';
export class RoomUnitBackgroundComposer implements IMessageComposer<ConstructorParameters<typeof RoomUnitBackgroundComposer>>
{
private _data: ConstructorParameters<typeof RoomUnitBackgroundComposer>;
constructor(backgroundImage: number, backgroundStand: number, backgroundOverlay: number)
{
this._data = [ backgroundImage, backgroundStand, backgroundOverlay ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}
@@ -1,5 +1,6 @@
export * from './chat';
export * from './RoomUnitActionComposer';
export * from './RoomUnitBackgroundComposer';
export * from './RoomUnitDanceComposer';
export * from './RoomUnitDropHandItemComposer';
export * from './RoomUnitGiveHandItemComposer';