Added Color to the Renderer and Avatar update

This commit is contained in:
duckietm
2024-04-04 09:26:05 +02:00
parent 187622429f
commit 95bc0045ec
11 changed files with 92 additions and 51 deletions
@@ -25,13 +25,14 @@ export class RoomSessionChatEvent extends RoomSessionEvent
private _extraParam: number;
private _style: number;
constructor(type: string, session: IRoomSession, objectId: number, message: string, chatType: number, style: number = 0, links: string[] = null, extraParam: number = -1)
constructor(type: string, session: IRoomSession, objectId: number, message: string, chatType: number, style: number = 0, chatColours: string[], links: string[] = null, extraParam: number = -1)
{
super(type, session);
this._objectId = objectId;
this._message = message;
this._chatType = chatType;
this._chatColours = chatColours;
this._links = links;
this._extraParam = extraParam;
this._style = style;
@@ -66,4 +67,9 @@ export class RoomSessionChatEvent extends RoomSessionEvent
{
return this._style;
}
public get chatColours(): string[]
{
return this._chatColours;
}
}