Merge branch 'main' into @update/widgets

This commit is contained in:
Bill 2022-05-25 19:03:28 -04:00
commit 25b407f79f
3 changed files with 21 additions and 10 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@nitrots/nitro-renderer",
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
"version": "1.2.5",
"version": "1.2.6",
"publishConfig": {
"access": "public"
},

View File

@ -1,5 +1,5 @@
export class NitroVersion
{
public static RENDERER_VERSION: string = '1.2.5';
public static RENDERER_VERSION: string = '1.2.6';
public static UI_VERSION: string = '';
}

View File

@ -1,10 +1,15 @@
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorParameters<typeof SaveRoomSettingsComposer>>
export class SaveRoomSettingsComposer
implements
IMessageComposer<
ConstructorParameters<typeof SaveRoomSettingsComposer>
>
{
private _data: ConstructorParameters<typeof SaveRoomSettingsComposer>;
constructor(roomId: number,
constructor(
roomId: number,
roomName: string,
roomDescription: string,
lockState: number,
@ -30,16 +35,22 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
chatFloodProtection: number
)
{
this._data = [
//@ts-ignore
this._data = [];
this._data.push(
roomId,
roomName,
roomDescription,
lockState,
password,
userCount,
categoryId,
tagsCount,
tags,
categoryId
);
this._data.push(tags.length, ...tags);
this._data.push(
tradeState,
allowPets,
allowPetsEat,
@ -55,7 +66,7 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
chatBubbleSpeed,
chatDistance,
chatFloodProtection
];
);
}
public getMessageArray()