Sync renderer safety push

This commit is contained in:
Lorenzune
2026-04-21 08:57:35 +02:00
parent db3e8394ea
commit 7bf552824f
53 changed files with 1182 additions and 36 deletions
@@ -21,6 +21,7 @@ export class RoomSessionChatEvent extends RoomSessionEvent
private _objectId: number;
private _message: string;
private _chatType: number;
private _chatColours: string;
private _links: string[];
private _extraParam: number;
private _style: number;
@@ -28,8 +29,11 @@ export class RoomSessionChatEvent extends RoomSessionEvent
private _prefixColor: string;
private _prefixIcon: string;
private _prefixEffect: string;
private _prefixFont: string;
private _nickIcon: string;
private _displayOrder: string;
constructor(type: string, session: IRoomSession, objectId: number, message: string, chatType: number, style: number = 0, chatColours: string[], links: string[] = null, extraParam: number = -1, prefixText: string = '', prefixColor: string = '', prefixIcon: string = '', prefixEffect: string = '')
constructor(type: string, session: IRoomSession, objectId: number, message: string, chatType: number, style: number = 0, chatColours: string = '', links: string[] = null, extraParam: number = -1, prefixText: string = '', prefixColor: string = '', prefixIcon: string = '', prefixEffect: string = '', prefixFont: string = '', nickIcon: string = '', displayOrder: string = 'icon-prefix-name')
{
super(type, session);
@@ -44,6 +48,9 @@ export class RoomSessionChatEvent extends RoomSessionEvent
this._prefixColor = prefixColor;
this._prefixIcon = prefixIcon;
this._prefixEffect = prefixEffect;
this._prefixFont = prefixFont;
this._nickIcon = nickIcon;
this._displayOrder = displayOrder;
}
public get objectId(): number
@@ -76,7 +83,7 @@ export class RoomSessionChatEvent extends RoomSessionEvent
return this._style;
}
public get chatColours(): string[]
public get chatColours(): string
{
return this._chatColours;
}
@@ -100,4 +107,19 @@ export class RoomSessionChatEvent extends RoomSessionEvent
{
return this._prefixEffect;
}
public get prefixFont(): string
{
return this._prefixFont;
}
public get nickIcon(): string
{
return this._nickIcon;
}
public get displayOrder(): string
{
return this._displayOrder;
}
}