mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Merge branch 'main' into @update/widgets
This commit is contained in:
commit
25b407f79f
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@nitrots/nitro-renderer",
|
"name": "@nitrots/nitro-renderer",
|
||||||
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
|
"description": "Javascript library for rendering Nitro in the browser using PixiJS",
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export class NitroVersion
|
export class NitroVersion
|
||||||
{
|
{
|
||||||
public static RENDERER_VERSION: string = '1.2.5';
|
public static RENDERER_VERSION: string = '1.2.6';
|
||||||
public static UI_VERSION: string = '';
|
public static UI_VERSION: string = '';
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
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>;
|
private _data: ConstructorParameters<typeof SaveRoomSettingsComposer>;
|
||||||
|
|
||||||
constructor(roomId: number,
|
constructor(
|
||||||
|
roomId: number,
|
||||||
roomName: string,
|
roomName: string,
|
||||||
roomDescription: string,
|
roomDescription: string,
|
||||||
lockState: number,
|
lockState: number,
|
||||||
@ -30,16 +35,22 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
|||||||
chatFloodProtection: number
|
chatFloodProtection: number
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
this._data = [
|
//@ts-ignore
|
||||||
|
this._data = [];
|
||||||
|
|
||||||
|
this._data.push(
|
||||||
roomId,
|
roomId,
|
||||||
roomName,
|
roomName,
|
||||||
roomDescription,
|
roomDescription,
|
||||||
lockState,
|
lockState,
|
||||||
password,
|
password,
|
||||||
userCount,
|
userCount,
|
||||||
categoryId,
|
categoryId
|
||||||
tagsCount,
|
);
|
||||||
tags,
|
|
||||||
|
this._data.push(tags.length, ...tags);
|
||||||
|
|
||||||
|
this._data.push(
|
||||||
tradeState,
|
tradeState,
|
||||||
allowPets,
|
allowPets,
|
||||||
allowPetsEat,
|
allowPetsEat,
|
||||||
@ -55,7 +66,7 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
|||||||
chatBubbleSpeed,
|
chatBubbleSpeed,
|
||||||
chatDistance,
|
chatDistance,
|
||||||
chatFloodProtection
|
chatFloodProtection
|
||||||
];
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMessageArray()
|
public getMessageArray()
|
||||||
@ -67,4 +78,4 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user