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,69 @@
import { IRoomSession } from '@nitrots/api';
import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionChatEvent extends RoomSessionEvent
{
public static CHAT_EVENT: string = 'RSCE_CHAT_EVENT';
public static FLOOD_EVENT: string = 'RSCE_FLOOD_EVENT';
public static CHAT_TYPE_SPEAK: number = 0;
public static CHAT_TYPE_WHISPER: number = 1;
public static CHAT_TYPE_SHOUT: number = 2;
public static CHAT_TYPE_RESPECT: number = 3;
public static CHAT_TYPE_PETRESPECT: number = 4;
public static CHAT_TYPE_HAND_ITEM_RECEIVED: number = 5;
public static CHAT_TYPE_PETTREAT: number = 6;
public static CHAT_TYPE_PETREVIVE: number = 7;
public static CHAT_TYPE_PET_REBREED_FERTILIZE: number = 8;
public static CHAT_TYPE_PET_SPEED_FERTILIZE: number = 9;
public static CHAT_TYPE_MUTE_REMAINING: number = 10;
private _objectId: number;
private _message: string;
private _chatType: number;
private _links: string[];
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)
{
super(type, session);
this._objectId = objectId;
this._message = message;
this._chatType = chatType;
this._links = links;
this._extraParam = extraParam;
this._style = style;
}
public get objectId(): number
{
return this._objectId;
}
public get message(): string
{
return this._message;
}
public get chatType(): number
{
return this._chatType;
}
public get links(): string[]
{
return this._links;
}
public get extraParam(): number
{
return this._extraParam;
}
public get style(): number
{
return this._style;
}
}