mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Fix room settings composer
This commit is contained in:
parent
3ffef1772a
commit
f9bd2b21f6
@ -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,19 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
||||
chatFloodProtection: number
|
||||
)
|
||||
{
|
||||
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 +63,7 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
||||
chatBubbleSpeed,
|
||||
chatDistance,
|
||||
chatFloodProtection
|
||||
];
|
||||
);
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
@ -67,4 +75,4 @@ export class SaveRoomSettingsComposer implements IMessageComposer<ConstructorPar
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user