From 912c46dd03a4b5125c47ccced4bafca0831b4f10 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 26 Aug 2021 00:08:46 -0400 Subject: [PATCH] Fix messy typings --- .../incoming/marketplace/MarketplaceOffer.ts | 40 +++++----- .../messages/incoming/sound/SongInfoEntry.ts | 6 +- .../RenderRoomThumbnailMessageComposer.ts | 2 +- ...uildersClubPlaceRoomItemMessageComposer.ts | 2 +- ...uildersClubPlaceWallItemMessageComposer.ts | 2 +- .../catalog/PurchaseRoomAdMessageComposer.ts | 2 +- .../catalog/SetTargetedOfferStateComposer.ts | 2 +- .../ShopTargetedOfferViewedComposer.ts | 2 +- .../outgoing/crafting/CraftSecretComposer.ts | 2 +- .../GetCraftingRecipesAvailableComposer.ts | 2 +- .../modtool/ModtoolSanctionBanComposer.ts | 2 +- .../room/access/RoomDoorbellAccessComposer.ts | 2 +- .../dimmer/MoodlightSettingsSaveComposer.ts | 2 +- .../furniture/toner/ApplyTonerComposer.ts | 2 +- .../parser/catalog/ClubGiftInfoParser.ts | 8 +- .../VoucherRedeemErrorMessageParser.ts | 4 +- .../catalog/VoucherRedeemOkMessageParser.ts | 8 +- .../furniture/PresentOpenedMessageParser.ts | 14 ++-- .../marketplace/MarketplaceOfferData.ts | 2 +- .../marketplace/MarketplaceOwnOffersParser.ts | 2 +- .../modtool/utils/IssueInfoMessageParser.ts | 36 ++++----- .../parser/modtool/utils/ModeratorInitData.ts | 38 +++++----- .../modtool/utils/ModeratorUserInfoData.ts | 76 +++++++++---------- .../modtool/utils/ModtoolRoomVisitedData.ts | 8 +- .../parser/modtool/utils/PatternMatchData.ts | 16 ++-- .../parser/modtool/utils/RoomVisitData.ts | 16 ++-- .../parser/quest/EpicPopupMessageParser.ts | 2 +- .../parser/quest/QuestDailyMessageParser.ts | 4 +- .../parser/roomevents/RoomMutedParser.ts | 2 +- .../parser/sound/NowPlayingMessageParser.ts | 20 ++--- .../sound/OfficialSongIdMessageParser.ts | 8 +- .../parser/sound/PlayListMessageParser.ts | 4 +- src/nitro/localization/BadgeBaseAndLevel.ts | 2 +- src/nitro/room/RoomMessageHandler.ts | 2 +- .../enums/FriendFurniEngravingWidgetType.ts | 10 +-- .../messages/ObjectModelDataUpdateMessage.ts | 2 +- .../room/object/RoomPlaneBitmapMaskData.ts | 4 +- ...nitureGiftWrappedFireworksVisualization.ts | 4 +- src/nitro/room/utils/SpriteDataCollector.ts | 2 +- .../renderer/cache/RoomObjectCacheItem.ts | 2 +- src/room/utils/Rasterizer.ts | 16 ++-- 41 files changed, 191 insertions(+), 191 deletions(-) diff --git a/src/nitro/communication/messages/incoming/marketplace/MarketplaceOffer.ts b/src/nitro/communication/messages/incoming/marketplace/MarketplaceOffer.ts index c9c4533c..0c05e2dc 100644 --- a/src/nitro/communication/messages/incoming/marketplace/MarketplaceOffer.ts +++ b/src/nitro/communication/messages/incoming/marketplace/MarketplaceOffer.ts @@ -2,18 +2,18 @@ import { IObjectData } from '../../../../room/object/data/IObjectData'; export class MarketplaceOffer { - private readonly _offerId:number; - private readonly _furniId:number; - private readonly _furniType:number; - private readonly _extraData:string; + private readonly _offerId: number; + private readonly _furniId: number; + private readonly _furniType: number; + private readonly _extraData: string; private readonly _stuffData:IObjectData; - private readonly _price:number; - private readonly _status:number; - private readonly _timeLeftMinutes:number = -1; - private readonly _averagePrice:number; - private readonly _offerCount:number; + private readonly _price: number; + private readonly _status: number; + private readonly _timeLeftMinutes: number = -1; + private readonly _averagePrice: number; + private readonly _offerCount: number; - constructor(offerId:number, furniId:number, furniType:number, extraData:string, stuffData:IObjectData, price:number, status:number, timeLeftMinutes:number, averagePrice:number, offerCount:number=-1) + constructor(offerId: number, furniId: number, furniType: number, extraData: string, stuffData:IObjectData, price: number, status: number, timeLeftMinutes: number, averagePrice: number, offerCount: number=-1) { this._offerId = offerId; this._furniId = furniId; @@ -27,22 +27,22 @@ export class MarketplaceOffer this._offerCount = offerCount; } - public get offerId():number + public get offerId(): number { return this._offerId; } - public get furniId():number + public get furniId(): number { return this._furniId; } - public get furniType():number + public get furniType(): number { return this._furniType; } - public get extraData():string + public get extraData(): string { return this._extraData; } @@ -52,32 +52,32 @@ export class MarketplaceOffer return this._stuffData; } - public get price():number + public get price(): number { return this._price; } - public get status():number + public get status(): number { return this._status; } - public get timeLeftMinutes():number + public get timeLeftMinutes(): number { return this._timeLeftMinutes; } - public get averagePrice():number + public get averagePrice(): number { return this._averagePrice; } - public get offerCount():number + public get offerCount(): number { return this._offerCount; } - public get isUniqueLimitedItem():boolean + public get isUniqueLimitedItem(): boolean { return (!(this.stuffData == null)) && (this.stuffData.uniqueSeries > 0); } diff --git a/src/nitro/communication/messages/incoming/sound/SongInfoEntry.ts b/src/nitro/communication/messages/incoming/sound/SongInfoEntry.ts index 37eaaabb..1981a5c6 100644 --- a/src/nitro/communication/messages/incoming/sound/SongInfoEntry.ts +++ b/src/nitro/communication/messages/incoming/sound/SongInfoEntry.ts @@ -2,15 +2,15 @@ import { PlayListEntry } from '.'; export class SongInfoEntry extends PlayListEntry { - private _data:string = ''; + private _data: string = ''; - constructor(id:number, length:number, name:string, creator:string, data:string) + constructor(id: number, length: number, name: string, creator: string, data: string) { super(id, length, name, creator); this._data = data; } - public get data():string + public get data(): string { return this._data; } diff --git a/src/nitro/communication/messages/outgoing/camera/RenderRoomThumbnailMessageComposer.ts b/src/nitro/communication/messages/outgoing/camera/RenderRoomThumbnailMessageComposer.ts index 7f31b80b..78a2bf4b 100644 --- a/src/nitro/communication/messages/outgoing/camera/RenderRoomThumbnailMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/camera/RenderRoomThumbnailMessageComposer.ts @@ -2,7 +2,7 @@ import { RenderRoomMessageComposer } from './RenderRoomMessageComposer'; export class RenderRoomThumbnailMessageComposer extends RenderRoomMessageComposer { - constructor(k:any = '', _arg_2:string = '', _arg_3:string = '', _arg_4:number = -1, _arg_5:number = -1) + constructor(k:any = '', _arg_2: string = '', _arg_3: string = '', _arg_4: number = -1, _arg_5: number = -1) { super(k, _arg_2, _arg_3, _arg_4, _arg_5); } diff --git a/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceRoomItemMessageComposer.ts b/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceRoomItemMessageComposer.ts index 92cbb36f..a91757a2 100644 --- a/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceRoomItemMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceRoomItemMessageComposer.ts @@ -4,7 +4,7 @@ export class BuildersClubPlaceRoomItemMessageComposer implements IMessageCompose { private _data: ConstructorParameters; - constructor(k:number, _arg_2:number, _arg_3:string, _arg_4:number, _arg_5:number, _arg_6:number) + constructor(k: number, _arg_2: number, _arg_3: string, _arg_4: number, _arg_5: number, _arg_6: number) { this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5, _arg_6]; } diff --git a/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceWallItemMessageComposer.ts b/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceWallItemMessageComposer.ts index 04807a4e..16438448 100644 --- a/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceWallItemMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/BuildersClubPlaceWallItemMessageComposer.ts @@ -4,7 +4,7 @@ export class BuildersClubPlaceWallItemMessageComposer implements IMessageCompose { private _data: ConstructorParameters; - constructor(k:number, _arg_2:number, _arg_3:string, _arg_4:string) + constructor(k: number, _arg_2: number, _arg_3: string, _arg_4: string) { this._data = [k, _arg_2, _arg_3, _arg_4]; } diff --git a/src/nitro/communication/messages/outgoing/catalog/PurchaseRoomAdMessageComposer.ts b/src/nitro/communication/messages/outgoing/catalog/PurchaseRoomAdMessageComposer.ts index db3f1486..87de9bf5 100644 --- a/src/nitro/communication/messages/outgoing/catalog/PurchaseRoomAdMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/PurchaseRoomAdMessageComposer.ts @@ -4,7 +4,7 @@ export class PurchaseRoomAdMessageComposer implements IMessageComposer; - constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:string, _arg_5:boolean, _arg_6:string, _arg_7:number) + constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: string, _arg_5: boolean, _arg_6: string, _arg_7: number) { this._data = [ k, _arg_2, _arg_3, _arg_4, _arg_5, _arg_6, _arg_7 ]; } diff --git a/src/nitro/communication/messages/outgoing/catalog/SetTargetedOfferStateComposer.ts b/src/nitro/communication/messages/outgoing/catalog/SetTargetedOfferStateComposer.ts index ad9c50ee..5d6b4085 100644 --- a/src/nitro/communication/messages/outgoing/catalog/SetTargetedOfferStateComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/SetTargetedOfferStateComposer.ts @@ -4,7 +4,7 @@ export class SetTargetedOfferStateComposer implements IMessageComposer; - constructor(k:number, _arg_2:number) + constructor(k: number, _arg_2: number) { this._data = [ k, _arg_2 ]; } diff --git a/src/nitro/communication/messages/outgoing/catalog/ShopTargetedOfferViewedComposer.ts b/src/nitro/communication/messages/outgoing/catalog/ShopTargetedOfferViewedComposer.ts index 4579e971..79edfde4 100644 --- a/src/nitro/communication/messages/outgoing/catalog/ShopTargetedOfferViewedComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/ShopTargetedOfferViewedComposer.ts @@ -4,7 +4,7 @@ export class ShopTargetedOfferViewedComposer implements IMessageComposer; - constructor(k:number, _arg_2:number) + constructor(k: number, _arg_2: number) { this._data = [ k, _arg_2 ]; } diff --git a/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts b/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts index c3ea984a..5a8a153a 100644 --- a/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts @@ -4,7 +4,7 @@ export class CraftSecretComposer implements IMessageComposer { private _data: number[]; - constructor(k: number, _arg_2:number[]) + constructor(k: number, _arg_2: number[]) { this._data = [k, _arg_2.length].concat(_arg_2); } diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts index 79a4e840..a74c6410 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts @@ -4,7 +4,7 @@ export class GetCraftingRecipesAvailableComposer implements IMessageComposer { private _data: any[] = []; - constructor(k: number, arg2: string, arg3: number, arg4:number, arg5: boolean, arg6: number = -1) + constructor(k: number, arg2: string, arg3: number, arg4: number, arg5: boolean, arg6: number = -1) { this._data.push(k); this._data.push(arg2); diff --git a/src/nitro/communication/messages/outgoing/room/access/RoomDoorbellAccessComposer.ts b/src/nitro/communication/messages/outgoing/room/access/RoomDoorbellAccessComposer.ts index c75da08f..472ceed1 100644 --- a/src/nitro/communication/messages/outgoing/room/access/RoomDoorbellAccessComposer.ts +++ b/src/nitro/communication/messages/outgoing/room/access/RoomDoorbellAccessComposer.ts @@ -4,7 +4,7 @@ export class RoomDoorbellAccessComposer implements IMessageComposer; - constructor(user:string, allowedEntry: boolean) + constructor(user: string, allowedEntry: boolean) { this._data = [ user, allowedEntry ]; } diff --git a/src/nitro/communication/messages/outgoing/room/furniture/dimmer/MoodlightSettingsSaveComposer.ts b/src/nitro/communication/messages/outgoing/room/furniture/dimmer/MoodlightSettingsSaveComposer.ts index 75d58b1a..a8f52044 100644 --- a/src/nitro/communication/messages/outgoing/room/furniture/dimmer/MoodlightSettingsSaveComposer.ts +++ b/src/nitro/communication/messages/outgoing/room/furniture/dimmer/MoodlightSettingsSaveComposer.ts @@ -4,7 +4,7 @@ export class MoodlightSettingsSaveComposer implements IMessageComposer; - constructor(k: number, arg2: number, arg3: string, arg4:number, arg5:boolean) + constructor(k: number, arg2: number, arg3: string, arg4: number, arg5: boolean) { this._data = [k, arg2, arg3, arg4, arg5]; } diff --git a/src/nitro/communication/messages/outgoing/room/furniture/toner/ApplyTonerComposer.ts b/src/nitro/communication/messages/outgoing/room/furniture/toner/ApplyTonerComposer.ts index 4a122db3..a30f26fa 100644 --- a/src/nitro/communication/messages/outgoing/room/furniture/toner/ApplyTonerComposer.ts +++ b/src/nitro/communication/messages/outgoing/room/furniture/toner/ApplyTonerComposer.ts @@ -4,7 +4,7 @@ export class ApplyTonerComposer implements IMessageComposer; - constructor(k: number, arg2:number, arg3: number, arg4: number) + constructor(k: number, arg2: number, arg3: number, arg4: number) { this._data = [k, arg2, arg3, arg4]; } diff --git a/src/nitro/communication/messages/parser/catalog/ClubGiftInfoParser.ts b/src/nitro/communication/messages/parser/catalog/ClubGiftInfoParser.ts index cf53b47b..64d106b0 100644 --- a/src/nitro/communication/messages/parser/catalog/ClubGiftInfoParser.ts +++ b/src/nitro/communication/messages/parser/catalog/ClubGiftInfoParser.ts @@ -4,8 +4,8 @@ import { ClubGiftData } from '../../incoming/catalog/ClubGiftData'; export class ClubGiftInfoParser implements IMessageParser { - private _daysUntilNextGift:number; - private _giftsAvailable:number; + private _daysUntilNextGift: number; + private _giftsAvailable: number; private _offers: CatalogPageMessageOfferData[]; private _giftData:Map; @@ -47,12 +47,12 @@ export class ClubGiftInfoParser implements IMessageParser return this._offers; } - public get daysUntilNextGift():number + public get daysUntilNextGift(): number { return this._daysUntilNextGift; } - public get giftsAvailable():number + public get giftsAvailable(): number { return this._giftsAvailable; } diff --git a/src/nitro/communication/messages/parser/catalog/VoucherRedeemErrorMessageParser.ts b/src/nitro/communication/messages/parser/catalog/VoucherRedeemErrorMessageParser.ts index 9380dfc2..39c32e52 100644 --- a/src/nitro/communication/messages/parser/catalog/VoucherRedeemErrorMessageParser.ts +++ b/src/nitro/communication/messages/parser/catalog/VoucherRedeemErrorMessageParser.ts @@ -2,7 +2,7 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class VoucherRedeemErrorMessageParser implements IMessageParser { - private _errorCode:string = ''; + private _errorCode: string = ''; public flush(): boolean { @@ -19,7 +19,7 @@ export class VoucherRedeemErrorMessageParser implements IMessageParser return true; } - public get errorCode():string + public get errorCode(): string { return this._errorCode; } diff --git a/src/nitro/communication/messages/parser/catalog/VoucherRedeemOkMessageParser.ts b/src/nitro/communication/messages/parser/catalog/VoucherRedeemOkMessageParser.ts index f23f7642..bdf52080 100644 --- a/src/nitro/communication/messages/parser/catalog/VoucherRedeemOkMessageParser.ts +++ b/src/nitro/communication/messages/parser/catalog/VoucherRedeemOkMessageParser.ts @@ -2,8 +2,8 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class VoucherRedeemOkMessageParser implements IMessageParser { - private _productName:string = ''; - private _productDescription:string = ''; + private _productName: string = ''; + private _productDescription: string = ''; public flush(): boolean { @@ -22,12 +22,12 @@ export class VoucherRedeemOkMessageParser implements IMessageParser return true; } - public get productName():string + public get productName(): string { return this._productName; } - public get productDescription():string + public get productDescription(): string { return this._productDescription; } diff --git a/src/nitro/communication/messages/parser/inventory/furniture/PresentOpenedMessageParser.ts b/src/nitro/communication/messages/parser/inventory/furniture/PresentOpenedMessageParser.ts index e81ef17d..0df01d19 100644 --- a/src/nitro/communication/messages/parser/inventory/furniture/PresentOpenedMessageParser.ts +++ b/src/nitro/communication/messages/parser/inventory/furniture/PresentOpenedMessageParser.ts @@ -33,37 +33,37 @@ export class PresentOpenedMessageParser implements IMessageParser return true; } - public get itemType():string + public get itemType(): string { return this._itemType; } - public get classId():number + public get classId(): number { return this._classId; } - public get productCode():string + public get productCode(): string { return this._productCode; } - public get placedItemId():number + public get placedItemId(): number { return this._placedItemId; } - public get placedItemType():string + public get placedItemType(): string { return this._placedItemType; } - public get placedInRoom():boolean + public get placedInRoom(): boolean { return this._placedInRoom; } - public get petFigureString():string + public get petFigureString(): string { return this._petFigureString; } diff --git a/src/nitro/communication/messages/parser/marketplace/MarketplaceOfferData.ts b/src/nitro/communication/messages/parser/marketplace/MarketplaceOfferData.ts index 2042724f..5d654876 100644 --- a/src/nitro/communication/messages/parser/marketplace/MarketplaceOfferData.ts +++ b/src/nitro/communication/messages/parser/marketplace/MarketplaceOfferData.ts @@ -121,7 +121,7 @@ export class MarketplaceOfferData this._offerCount = count; } - public get isUniqueLimitedItem():boolean + public get isUniqueLimitedItem(): boolean { return (this.stuffData && (this.stuffData.uniqueSeries > 0)); } diff --git a/src/nitro/communication/messages/parser/marketplace/MarketplaceOwnOffersParser.ts b/src/nitro/communication/messages/parser/marketplace/MarketplaceOwnOffersParser.ts index 0c555d48..038b79dc 100644 --- a/src/nitro/communication/messages/parser/marketplace/MarketplaceOwnOffersParser.ts +++ b/src/nitro/communication/messages/parser/marketplace/MarketplaceOwnOffersParser.ts @@ -76,7 +76,7 @@ export class MarketplaceOwnOffersParser implements IMessageParser return this._offers; } - public get creditsWaiting():number + public get creditsWaiting(): number { return this._creditsWaiting; } diff --git a/src/nitro/communication/messages/parser/modtool/utils/IssueInfoMessageParser.ts b/src/nitro/communication/messages/parser/modtool/utils/IssueInfoMessageParser.ts index 3f7b2ff9..677fe3be 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/IssueInfoMessageParser.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/IssueInfoMessageParser.ts @@ -12,30 +12,30 @@ export class IssueInfoMessageParser implements IMessageParser return this._issueData; } - public flush():boolean + public flush(): boolean { this._issueData = null; return true; } - public parse(k:IMessageDataWrapper):boolean + public parse(k:IMessageDataWrapper): boolean { - const _local_2:number = k.readInt(); - const _local_3:number = k.readInt(); - const _local_4:number = k.readInt(); - const _local_5:number = k.readInt(); - const _local_6:number = k.readInt(); - const _local_7:number = k.readInt(); - const _local_8:number = k.readInt(); - const _local_9:number = k.readInt(); - const _local_10:string = k.readString(); - const _local_11:number = k.readInt(); - const _local_12:string = k.readString(); - const _local_13:number = k.readInt(); - const _local_14:string = k.readString(); - const _local_15:string = k.readString(); - const _local_16:number = k.readInt(); - const _local_17:number = k.readInt(); + const _local_2: number = k.readInt(); + const _local_3: number = k.readInt(); + const _local_4: number = k.readInt(); + const _local_5: number = k.readInt(); + const _local_6: number = k.readInt(); + const _local_7: number = k.readInt(); + const _local_8: number = k.readInt(); + const _local_9: number = k.readInt(); + const _local_10: string = k.readString(); + const _local_11: number = k.readInt(); + const _local_12: string = k.readString(); + const _local_13: number = k.readInt(); + const _local_14: string = k.readString(); + const _local_15: string = k.readString(); + const _local_16: number = k.readInt(); + const _local_17: number = k.readInt(); const _local_18:PatternMatchData[] = []; let _local_19 = 0; while(_local_19 < _local_17) diff --git a/src/nitro/communication/messages/parser/modtool/utils/ModeratorInitData.ts b/src/nitro/communication/messages/parser/modtool/utils/ModeratorInitData.ts index 68f76d79..aa0e944b 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/ModeratorInitData.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/ModeratorInitData.ts @@ -4,16 +4,16 @@ import { IssueMessageData } from './IssueMessageData'; export class ModeratorInitData { - private _messageTemplates:string[]; - private _roomMessageTemplates:string[]; + private _messageTemplates: string[]; + private _roomMessageTemplates: string[]; private _issues:IssueMessageData[]; - private _cfhPermission:boolean; - private _chatlogsPermission:boolean; - private _alertPermission:boolean; - private _kickPermission:boolean; - private _banPermission:boolean; - private _roomAlertPermission:boolean; - private _roomKickPermission:boolean; + private _cfhPermission: boolean; + private _chatlogsPermission: boolean; + private _alertPermission: boolean; + private _kickPermission: boolean; + private _banPermission: boolean; + private _roomAlertPermission: boolean; + private _roomKickPermission: boolean; private _disposed: boolean = false; @@ -80,17 +80,17 @@ export class ModeratorInitData this._issues = null; } - public get disposed():boolean + public get disposed(): boolean { return this._disposed; } - public get messageTemplates():string[] + public get messageTemplates(): string[] { return this._messageTemplates; } - public get roomMessageTemplates():string[] + public get roomMessageTemplates(): string[] { return this._roomMessageTemplates; } @@ -100,37 +100,37 @@ export class ModeratorInitData return this._issues; } - public get cfhPermission():boolean + public get cfhPermission(): boolean { return this._cfhPermission; } - public get chatlogsPermission():boolean + public get chatlogsPermission(): boolean { return this._chatlogsPermission; } - public get alertPermission():boolean + public get alertPermission(): boolean { return this._alertPermission; } - public get kickPermission():boolean + public get kickPermission(): boolean { return this._kickPermission; } - public get banPermission():boolean + public get banPermission(): boolean { return this._banPermission; } - public get roomAlertPermission():boolean + public get roomAlertPermission(): boolean { return this._roomAlertPermission; } - public get roomKickPermission():boolean + public get roomKickPermission(): boolean { return this._roomKickPermission; } diff --git a/src/nitro/communication/messages/parser/modtool/utils/ModeratorUserInfoData.ts b/src/nitro/communication/messages/parser/modtool/utils/ModeratorUserInfoData.ts index af5cf152..e3348336 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/ModeratorUserInfoData.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/ModeratorUserInfoData.ts @@ -2,25 +2,25 @@ import { IMessageDataWrapper } from '../../../../../../core'; export class ModeratorUserInfoData { - private _userId:number; - private _userName:string; - private _registrationAgeInMinutes:number; - private _minutesSinceLastLogin:number; - private _online:boolean; - private _cfhCount:number; - private _abusiveCfhCount:number; - private _cautionCount:number; - private _banCount:number; - private _tradingLockCount:number; - private _tradingExpiryDate:string; - private _lastPurchaseDate:string; - private _identityId:number; - private _identityRelatedBanCount:number; - private _primaryEmailAddress:string; - private _figure:string; - private _userClassification:string; - private _lastSanctionTime:string = ''; - private _sanctionAgeHours:number = 0; + private _userId: number; + private _userName: string; + private _registrationAgeInMinutes: number; + private _minutesSinceLastLogin: number; + private _online: boolean; + private _cfhCount: number; + private _abusiveCfhCount: number; + private _cautionCount: number; + private _banCount: number; + private _tradingLockCount: number; + private _tradingExpiryDate: string; + private _lastPurchaseDate: string; + private _identityId: number; + private _identityRelatedBanCount: number; + private _primaryEmailAddress: string; + private _figure: string; + private _userClassification: string; + private _lastSanctionTime: string = ''; + private _sanctionAgeHours: number = 0; constructor(wrapper: IMessageDataWrapper) { @@ -48,97 +48,97 @@ export class ModeratorUserInfoData } } - public get userId():number + public get userId(): number { return this._userId; } - public get userName():string + public get userName(): string { return this._userName; } - public get figure():string + public get figure(): string { return this._figure; } - public get registrationAgeInMinutes():number + public get registrationAgeInMinutes(): number { return this._registrationAgeInMinutes; } - public get minutesSinceLastLogin():number + public get minutesSinceLastLogin(): number { return this._minutesSinceLastLogin; } - public get online():boolean + public get online(): boolean { return this._online; } - public get cfhCount():number + public get cfhCount(): number { return this._cfhCount; } - public get abusiveCfhCount():number + public get abusiveCfhCount(): number { return this._abusiveCfhCount; } - public get cautionCount():number + public get cautionCount(): number { return this._cautionCount; } - public get banCount():number + public get banCount(): number { return this._banCount; } - public get tradingLockCount():number + public get tradingLockCount(): number { return this._tradingLockCount; } - public get tradingExpiryDate():string + public get tradingExpiryDate(): string { return this._tradingExpiryDate; } - public get lastPurchaseDate():string + public get lastPurchaseDate(): string { return this._lastPurchaseDate; } - public get identityId():number + public get identityId(): number { return this._identityId; } - public get identityRelatedBanCount():number + public get identityRelatedBanCount(): number { return this._identityRelatedBanCount; } - public get primaryEmailAddress():string + public get primaryEmailAddress(): string { return this._primaryEmailAddress; } - public get userClassification():string + public get userClassification(): string { return this._userClassification; } - public get lastSanctionTime():string + public get lastSanctionTime(): string { return this._lastSanctionTime; } - public get sanctionAgeHours():number + public get sanctionAgeHours(): number { return this._sanctionAgeHours; } diff --git a/src/nitro/communication/messages/parser/modtool/utils/ModtoolRoomVisitedData.ts b/src/nitro/communication/messages/parser/modtool/utils/ModtoolRoomVisitedData.ts index 1393b2e1..9791c1f3 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/ModtoolRoomVisitedData.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/ModtoolRoomVisitedData.ts @@ -4,8 +4,8 @@ import { RoomVisitData } from './RoomVisitData'; export class ModtoolRoomVisitedData { - private _userId:number; - private _userName:string; + private _userId: number; + private _userName: string; private _rooms:RoomVisitData[]; constructor(k:IMessageDataWrapper) @@ -22,12 +22,12 @@ export class ModtoolRoomVisitedData } } - public get userId():number + public get userId(): number { return this._userId; } - public get userName():string + public get userName(): string { return this._userName; } diff --git a/src/nitro/communication/messages/parser/modtool/utils/PatternMatchData.ts b/src/nitro/communication/messages/parser/modtool/utils/PatternMatchData.ts index d415b394..a6dd425c 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/PatternMatchData.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/PatternMatchData.ts @@ -3,10 +3,10 @@ import { IDisposable } from '../../../../../../core/common/disposable/IDisposabl export class PatternMatchData implements IDisposable { - private _pattern:string; - private _startIndex:number; - private _endIndex:number; - private _disposed:boolean = false; + private _pattern: string; + private _startIndex: number; + private _endIndex: number; + private _disposed: boolean = false; constructor(k:IMessageDataWrapper) { @@ -23,22 +23,22 @@ export class PatternMatchData implements IDisposable this._endIndex = -1; } - public get disposed():boolean + public get disposed(): boolean { return this._disposed; } - public get pattern():string + public get pattern(): string { return this._pattern; } - public get startIndex():number + public get startIndex(): number { return this._startIndex; } - public get endIndex():number + public get endIndex(): number { return this._endIndex; } diff --git a/src/nitro/communication/messages/parser/modtool/utils/RoomVisitData.ts b/src/nitro/communication/messages/parser/modtool/utils/RoomVisitData.ts index fab1f5d7..c69288de 100644 --- a/src/nitro/communication/messages/parser/modtool/utils/RoomVisitData.ts +++ b/src/nitro/communication/messages/parser/modtool/utils/RoomVisitData.ts @@ -2,10 +2,10 @@ import { IMessageDataWrapper } from '../../../../../../core'; export class RoomVisitData { - private _roomId:number; - private _roomName:string; - private _enterHour:number; - private _enterMinute:number; + private _roomId: number; + private _roomName: string; + private _enterHour: number; + private _enterMinute: number; constructor(k:IMessageDataWrapper) { @@ -15,22 +15,22 @@ export class RoomVisitData this._enterMinute = k.readInt(); } - public get roomId():number + public get roomId(): number { return this._roomId; } - public get roomName():string + public get roomName(): string { return this._roomName; } - public get enterHour():number + public get enterHour(): number { return this._enterHour; } - public get enterMinute():number + public get enterMinute(): number { return this._enterMinute; } diff --git a/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts b/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts index 75bad0dd..623c7ea5 100644 --- a/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts @@ -19,7 +19,7 @@ export class EpicPopupMessageParser implements IMessageParser return true; } - public get imageUri():string + public get imageUri(): string { return this._imageUri; } diff --git a/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts index 73864fb0..4c628ff2 100644 --- a/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts @@ -5,8 +5,8 @@ import { IMessageParser } from './../../../../../core'; export class QuestDailyMessageParser implements IMessageParser { private _quest:QuestMessageData; - private _easyQuestCount:number; - private _hardQuestCount:number; + private _easyQuestCount: number; + private _hardQuestCount: number; public flush(): boolean { diff --git a/src/nitro/communication/messages/parser/roomevents/RoomMutedParser.ts b/src/nitro/communication/messages/parser/roomevents/RoomMutedParser.ts index f9970a40..4136485a 100644 --- a/src/nitro/communication/messages/parser/roomevents/RoomMutedParser.ts +++ b/src/nitro/communication/messages/parser/roomevents/RoomMutedParser.ts @@ -2,7 +2,7 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class RoomMutedParser implements IMessageParser { - private _isMuted:boolean; + private _isMuted: boolean; public flush(): boolean { diff --git a/src/nitro/communication/messages/parser/sound/NowPlayingMessageParser.ts b/src/nitro/communication/messages/parser/sound/NowPlayingMessageParser.ts index 2ea7d4f0..2a2a4d12 100644 --- a/src/nitro/communication/messages/parser/sound/NowPlayingMessageParser.ts +++ b/src/nitro/communication/messages/parser/sound/NowPlayingMessageParser.ts @@ -2,11 +2,11 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class NowPlayingMessageParser implements IMessageParser { - private _currentSongId:number; - private _currentPosition:number; - private _nextSongId:number; - private _nextPosition:number; - private _syncCount:number; + private _currentSongId: number; + private _currentPosition: number; + private _nextSongId: number; + private _nextPosition: number; + private _syncCount: number; flush(): boolean { @@ -28,27 +28,27 @@ export class NowPlayingMessageParser implements IMessageParser return true; } - public get currentSongId():number + public get currentSongId(): number { return this._currentSongId; } - public get currentPosition():number + public get currentPosition(): number { return this._currentPosition; } - public get nextSongId():number + public get nextSongId(): number { return this._nextSongId; } - public get nextPosition():number + public get nextPosition(): number { return this._nextPosition; } - public get syncCount():number + public get syncCount(): number { return this._syncCount; } diff --git a/src/nitro/communication/messages/parser/sound/OfficialSongIdMessageParser.ts b/src/nitro/communication/messages/parser/sound/OfficialSongIdMessageParser.ts index c6d2770d..ebdb4e18 100644 --- a/src/nitro/communication/messages/parser/sound/OfficialSongIdMessageParser.ts +++ b/src/nitro/communication/messages/parser/sound/OfficialSongIdMessageParser.ts @@ -2,8 +2,8 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class OfficialSongIdMessageParser implements IMessageParser { - private _songId:number; - private _officialSongId:string; + private _songId: number; + private _officialSongId: string; flush(): boolean { @@ -19,12 +19,12 @@ export class OfficialSongIdMessageParser implements IMessageParser return true; } - public get songId():number + public get songId(): number { return this._songId; } - public get officialSongId():string + public get officialSongId(): string { return this._officialSongId; } diff --git a/src/nitro/communication/messages/parser/sound/PlayListMessageParser.ts b/src/nitro/communication/messages/parser/sound/PlayListMessageParser.ts index 3ceb7920..c9fdb8f7 100644 --- a/src/nitro/communication/messages/parser/sound/PlayListMessageParser.ts +++ b/src/nitro/communication/messages/parser/sound/PlayListMessageParser.ts @@ -3,7 +3,7 @@ import { PlayListEntry } from '../../incoming/sound'; export class PlayListMessageParser implements IMessageParser { - private _synchronizationCount:number; + private _synchronizationCount: number; private _playlist:PlayListEntry[]; flush(): boolean @@ -27,7 +27,7 @@ export class PlayListMessageParser implements IMessageParser return true; } - public get synchronizationCount():number + public get synchronizationCount(): number { return this._synchronizationCount; } diff --git a/src/nitro/localization/BadgeBaseAndLevel.ts b/src/nitro/localization/BadgeBaseAndLevel.ts index 7341d72e..4abbcae2 100644 --- a/src/nitro/localization/BadgeBaseAndLevel.ts +++ b/src/nitro/localization/BadgeBaseAndLevel.ts @@ -36,7 +36,7 @@ export class BadgeBaseAndLevel return this._level; } - public set level(k :number) + public set level(k : number) { this._level = Math.max(1, k); } diff --git a/src/nitro/room/RoomMessageHandler.ts b/src/nitro/room/RoomMessageHandler.ts index 26de8274..6c81e86a 100644 --- a/src/nitro/room/RoomMessageHandler.ts +++ b/src/nitro/room/RoomMessageHandler.ts @@ -951,7 +951,7 @@ export class RoomMessageHandler extends Disposable // public _SafeStr_10580(event:_SafeStr_2242): void // { - // var arrayIndex:int; + // var arrayIndex: number; // var discoColours:Array; // var discoTimer:Timer; // var eventParser:_SafeStr_4576 = (event.parser as _SafeStr_4576); diff --git a/src/nitro/room/enums/FriendFurniEngravingWidgetType.ts b/src/nitro/room/enums/FriendFurniEngravingWidgetType.ts index e3c75c7a..47a95f97 100644 --- a/src/nitro/room/enums/FriendFurniEngravingWidgetType.ts +++ b/src/nitro/room/enums/FriendFurniEngravingWidgetType.ts @@ -1,8 +1,8 @@ export class FriendFurniEngravingWidgetType { - public static readonly LOVE_LOCK:number = 0; - public static readonly CARVE_A_TREE:number = 1; - public static readonly FRIENDS_PORTRAIT:number = 2; - public static readonly WILD_WEST_WANTED:number = 3; - public static readonly HABBOWEEN:number = 4; + public static readonly LOVE_LOCK: number = 0; + public static readonly CARVE_A_TREE: number = 1; + public static readonly FRIENDS_PORTRAIT: number = 2; + public static readonly WILD_WEST_WANTED: number = 3; + public static readonly HABBOWEEN: number = 4; } diff --git a/src/nitro/room/messages/ObjectModelDataUpdateMessage.ts b/src/nitro/room/messages/ObjectModelDataUpdateMessage.ts index dbcd4a47..c4052973 100644 --- a/src/nitro/room/messages/ObjectModelDataUpdateMessage.ts +++ b/src/nitro/room/messages/ObjectModelDataUpdateMessage.ts @@ -3,7 +3,7 @@ import { RoomObjectUpdateMessage } from '../../../room/messages/RoomObjectUpdate export class ObjectModelDataUpdateMessage extends RoomObjectUpdateMessage { private _numberKey: string; - private _numberValue:number; + private _numberValue: number; constructor(numberKey: string, numberValue: number) { diff --git a/src/nitro/room/object/RoomPlaneBitmapMaskData.ts b/src/nitro/room/object/RoomPlaneBitmapMaskData.ts index ae106952..baf6511b 100644 --- a/src/nitro/room/object/RoomPlaneBitmapMaskData.ts +++ b/src/nitro/room/object/RoomPlaneBitmapMaskData.ts @@ -4,7 +4,7 @@ import { Vector3d } from '../../../room/utils/Vector3d'; export class RoomPlaneBitmapMaskData { public static WINDOW: string = 'window'; - public static HOLE:string = 'hole'; + public static HOLE: string = 'hole'; private _loc: Vector3d; private _type: string; @@ -53,4 +53,4 @@ export class RoomPlaneBitmapMaskData { this._loc = null; } -} \ No newline at end of file +} diff --git a/src/nitro/room/object/visualization/furniture/FurnitureGiftWrappedFireworksVisualization.ts b/src/nitro/room/object/visualization/furniture/FurnitureGiftWrappedFireworksVisualization.ts index 0832df4f..0963989f 100644 --- a/src/nitro/room/object/visualization/furniture/FurnitureGiftWrappedFireworksVisualization.ts +++ b/src/nitro/room/object/visualization/furniture/FurnitureGiftWrappedFireworksVisualization.ts @@ -8,8 +8,8 @@ export class FurnitureGiftWrappedFireworksVisualization extends FurnitureFirewor private static MAX_PACKET_TYPE_VALUE: number = 9; private static MAX_RIBBON_TYPE_VALUE: number = 11; - private _packetType:number = 0; - private _ribbonType:number = 0; + private _packetType: number = 0; + private _ribbonType: number = 0; private _lastAnimationId: number = 0; public update(geometry: IRoomGeometry, time: number, update: boolean, skipUpdate: boolean) diff --git a/src/nitro/room/utils/SpriteDataCollector.ts b/src/nitro/room/utils/SpriteDataCollector.ts index e2e88c1a..859ffe2f 100644 --- a/src/nitro/room/utils/SpriteDataCollector.ts +++ b/src/nitro/room/utils/SpriteDataCollector.ts @@ -254,7 +254,7 @@ export class SpriteDataCollector // } // } - // var _local_8:String = _arg_4.configuration.getProperty('image.library.url'); + // var _local_8: string = _arg_4.configuration.getProperty('image.library.url'); // _local_6 = _local_6.replace('%image.library.url%', _local_8); // if (_local_6.indexOf('%group.badge.url%') != -1) // { diff --git a/src/room/renderer/cache/RoomObjectCacheItem.ts b/src/room/renderer/cache/RoomObjectCacheItem.ts index 9b2dfffe..7e334889 100644 --- a/src/room/renderer/cache/RoomObjectCacheItem.ts +++ b/src/room/renderer/cache/RoomObjectCacheItem.ts @@ -45,7 +45,7 @@ export class RoomObjectCacheItem return this._objectId; } - public set objectId(k:number) + public set objectId(k: number) { this._objectId = k; } diff --git a/src/room/utils/Rasterizer.ts b/src/room/utils/Rasterizer.ts index d11f945f..544542c0 100644 --- a/src/room/utils/Rasterizer.ts +++ b/src/room/utils/Rasterizer.ts @@ -7,14 +7,14 @@ export class Rasterizer { // public static line(k:BitmapData, _arg_2: Point, _arg_3: Point, _arg_4: number): void // { - // var _local_5:int; - // var _local_6:int; - // var _local_7:int; - // var _local_8:int; - // var _local_9:int; - // var _local_10:int; - // var _local_11:int = _arg_2.x; - // var _local_12:int = _arg_2.y; + // var _local_5: number; + // var _local_6: number; + // var _local_7: number; + // var _local_8: number; + // var _local_9: number; + // var _local_10: number; + // var _local_11: number = _arg_2.x; + // var _local_12: number = _arg_2.y; // _local_5 = (_arg_3.x - _arg_2.x); // _local_6 = (_arg_3.y - _arg_2.y); // _local_8 = ((_local_5 > 0) ? 1 : -1);