clean up some variable names

This commit is contained in:
dank074 2022-12-13 19:38:04 -06:00
parent 70b5943c44
commit 039f4a766f
23 changed files with 232 additions and 232 deletions

View File

@ -2,17 +2,17 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class BuildersClubSubscriptionStatusMessageParser implements IMessageParser export class BuildersClubSubscriptionStatusMessageParser implements IMessageParser
{ {
private _Str_16456: number; private _secondsLeft: number;
private _Str_12494: number; private _furniLimit: number;
private _Str_19123: number; private _maxFurniLimit: number;
private _Str_17298: number; private _secondsLeftWithGrace: number;
public flush(): boolean public flush(): boolean
{ {
this._Str_16456 = 0; this._secondsLeft = 0;
this._Str_12494 = 0; this._furniLimit = 0;
this._Str_19123 = 0; this._maxFurniLimit = 0;
this._Str_17298 = 0; this._secondsLeftWithGrace = 0;
return true; return true;
} }
@ -21,33 +21,33 @@ export class BuildersClubSubscriptionStatusMessageParser implements IMessagePars
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._Str_16456 = wrapper.readInt(); this._secondsLeft = wrapper.readInt();
this._Str_12494 = wrapper.readInt(); this._furniLimit = wrapper.readInt();
this._Str_19123 = wrapper.readInt(); this._maxFurniLimit = wrapper.readInt();
if(wrapper.bytesAvailable) this._Str_17298 = wrapper.readInt(); if(wrapper.bytesAvailable) this._secondsLeftWithGrace = wrapper.readInt();
else this._Str_17298 = this._Str_16456; else this._secondsLeftWithGrace = this._secondsLeft;
return true; return true;
} }
public get _Str_3709(): number public get secondsLeft(): number
{ {
return this._Str_16456; return this._secondsLeft;
} }
public get _Str_15864(): number public get furniLimit(): number
{ {
return this._Str_12494; return this._furniLimit;
} }
public get _Str_24094(): number public get maxFurniLimit(): number
{ {
return this._Str_19123; return this._maxFurniLimit;
} }
public get _Str_24379(): number public get secondsLeftWithGrace(): number
{ {
return this._Str_17298; return this._secondsLeftWithGrace;
} }
} }

View File

@ -2,52 +2,52 @@
export class BundleDiscountRuleset export class BundleDiscountRuleset
{ {
private _Str_20535: number; private _maxPurchaseSize: number;
private _Str_19937: number; private _bundleSize: number;
private _Str_20951: number; private _bundleDiscountSize: number;
private _Str_20460: number; private _bonusThreshold: number;
private _Str_16144: number[]; private _additionalBonusDiscountThresholdQuantities: number[];
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._Str_20535 = wrapper.readInt(); this._maxPurchaseSize = wrapper.readInt();
this._Str_19937 = wrapper.readInt(); this._bundleSize = wrapper.readInt();
this._Str_20951 = wrapper.readInt(); this._bundleDiscountSize = wrapper.readInt();
this._Str_20460 = wrapper.readInt(); this._bonusThreshold = wrapper.readInt();
this._Str_16144 = []; this._additionalBonusDiscountThresholdQuantities = [];
let count = wrapper.readInt(); let count = wrapper.readInt();
while(count > 0) while(count > 0)
{ {
this._Str_16144.push(wrapper.readInt()); this._additionalBonusDiscountThresholdQuantities.push(wrapper.readInt());
count--; count--;
} }
} }
public get _Str_22802(): number public get maxPurchaseSize(): number
{ {
return this._Str_20535; return this._maxPurchaseSize;
} }
public get _Str_9227(): number public get bundleSize(): number
{ {
return this._Str_19937; return this._bundleSize;
} }
public get _Str_23802(): number public get bundleDiscountSize(): number
{ {
return this._Str_20951; return this._bundleDiscountSize;
} }
public get _Str_21500(): number public get bonusThreshold(): number
{ {
return this._Str_20460; return this._bonusThreshold;
} }
public get _Str_25155(): number[] public get additionalBonusDiscountThresholdQuantities(): number[]
{ {
return this._Str_16144; return this._additionalBonusDiscountThresholdQuantities;
} }
} }

View File

@ -4,14 +4,14 @@ export class CatalogPageExpirationParser implements IMessageParser
{ {
private _pageName: string; private _pageName: string;
private _pageId: number; private _pageId: number;
private _Str_5158: number; private _secondsToExpiry: number;
private _image: string; private _image: string;
public flush(): boolean public flush(): boolean
{ {
this._pageName = null; this._pageName = null;
this._pageId = 0; this._pageId = 0;
this._Str_5158 = 0; this._secondsToExpiry = 0;
this._image = null; this._image = null;
return true; return true;
@ -23,7 +23,7 @@ export class CatalogPageExpirationParser implements IMessageParser
this._pageId = wrapper.readInt(); this._pageId = wrapper.readInt();
this._pageName = wrapper.readString(); this._pageName = wrapper.readString();
this._Str_5158 = wrapper.readInt(); this._secondsToExpiry = wrapper.readInt();
this._image = wrapper.readString(); this._image = wrapper.readString();
return true; return true;
@ -39,9 +39,9 @@ export class CatalogPageExpirationParser implements IMessageParser
return this._pageId; return this._pageId;
} }
public get _Str_17123(): number public get secondsToExpiry(): number
{ {
return this._Str_5158; return this._secondsToExpiry;
} }
public get image(): string public get image(): string

View File

@ -3,13 +3,13 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class CatalogPageWithEarliestExpiryMessageParser implements IMessageParser export class CatalogPageWithEarliestExpiryMessageParser implements IMessageParser
{ {
private _pageName: string; private _pageName: string;
private _Str_5158: number; private _secondsToExpiry: number;
private _image: string; private _image: string;
public flush(): boolean public flush(): boolean
{ {
this._pageName = null; this._pageName = null;
this._Str_5158 = 0; this._secondsToExpiry = 0;
this._image = null; this._image = null;
return true; return true;
@ -20,7 +20,7 @@ export class CatalogPageWithEarliestExpiryMessageParser implements IMessageParse
if(!wrapper) return false; if(!wrapper) return false;
this._pageName = wrapper.readString(); this._pageName = wrapper.readString();
this._Str_5158 = wrapper.readInt(); this._secondsToExpiry = wrapper.readInt();
this._image = wrapper.readString(); this._image = wrapper.readString();
return true; return true;
@ -31,9 +31,9 @@ export class CatalogPageWithEarliestExpiryMessageParser implements IMessageParse
return this._pageName; return this._pageName;
} }
public get _Str_17123(): number public get secondsToExpiry(): number
{ {
return this._Str_5158; return this._secondsToExpiry;
} }
public get image(): string public get image(): string

View File

@ -0,0 +1,50 @@
import { IMessageDataWrapper } from '../../../../../api';
import { ClubOfferData } from './ClubOfferData';
export class ClubOfferExtendData extends ClubOfferData
{
private _originalPrice: number;
private _originalActivityPointPrice: number;
private _originalActivityPointType: number;
private _subscriptionDaysLeft: number;
constructor(wrapper: IMessageDataWrapper)
{
super(wrapper);
this._originalPrice = wrapper.readInt();
this._originalActivityPointPrice = wrapper.readInt();
this._originalActivityPointType = wrapper.readInt();
this._subscriptionDaysLeft = wrapper.readInt();
}
public get originalPrice(): number
{
return this._originalPrice * this.months;
}
public get originalActivityPointPrice(): number
{
return this._originalActivityPointPrice * this.months;
}
public get originalActivityPointType(): number
{
return this._originalActivityPointType;
}
public get discountCreditAmount(): number
{
return (this._originalPrice * this.months) - this.priceCredits;
}
public get discountActivityPointAmount(): number
{
return (this.originalActivityPointPrice * this.months) - this.priceActivityPoints;
}
public get subscriptionDaysLeft(): number
{
return this._subscriptionDaysLeft;
}
}

View File

@ -1,50 +0,0 @@
import { IMessageDataWrapper } from '../../../../../api';
import { ClubOfferData } from './ClubOfferData';
export class ClubOfferExtendedData extends ClubOfferData
{
private _Str_16193: number;
private _Str_22071: number;
private _Str_21178: number;
private _Str_21024: number;
constructor(wrapper: IMessageDataWrapper)
{
super(wrapper);
this._Str_16193 = wrapper.readInt();
this._Str_22071 = wrapper.readInt();
this._Str_21178 = wrapper.readInt();
this._Str_21024 = wrapper.readInt();
}
public get _Str_23477(): number
{
return this._Str_16193 * this.months;
}
public get _Str_21585(): number
{
return this._Str_22071 * this.months;
}
public get _Str_22469(): number
{
return this._Str_21178;
}
public get _Str_24050(): number
{
return (this._Str_16193 * this.months) - this.priceCredits;
}
public get _Str_22280(): number
{
return (this._Str_21585 * this.months) - this.priceActivityPoints;
}
public get _Str_21229(): number
{
return this._Str_21024;
}
}

View File

@ -3,16 +3,16 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class DirectSMSClubBuyAvailableMessageParser implements IMessageParser export class DirectSMSClubBuyAvailableMessageParser implements IMessageParser
{ {
private _available: boolean; private _available: boolean;
private _Str_16515: string; private _pricePointUrl: string;
private _Str_22121: string; private _market: string;
private _Str_21897: number; private _lengthInDays: number;
public flush(): boolean public flush(): boolean
{ {
this._available = false; this._available = false;
this._Str_16515 = null; this._pricePointUrl = null;
this._Str_22121 = null; this._market = null;
this._Str_21897 = 0; this._lengthInDays = 0;
return true; return true;
} }
@ -21,12 +21,12 @@ export class DirectSMSClubBuyAvailableMessageParser implements IMessageParser
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._Str_16515 = wrapper.readString(); this._pricePointUrl = wrapper.readString();
if(this._Str_16515 !== '') this._available = true; if(this._pricePointUrl !== '') this._available = true;
this._Str_22121 = wrapper.readString(); this._market = wrapper.readString();
this._Str_21897 = wrapper.readInt(); this._lengthInDays = wrapper.readInt();
return true; return true;
} }
@ -36,18 +36,18 @@ export class DirectSMSClubBuyAvailableMessageParser implements IMessageParser
return this._available; return this._available;
} }
public get _Str_26301(): string public get pricePointUrl(): string
{ {
return this._Str_16515; return this._pricePointUrl;
} }
public get _Str_26118(): string public get market(): string
{ {
return this._Str_22121; return this._market;
} }
public get _Str_26380(): number public get lengthInDays(): number
{ {
return this._Str_21897; return this._lengthInDays;
} }
} }

View File

@ -1,9 +1,9 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../api'; import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
import { ClubOfferExtendedData } from './ClubOfferExtendedData'; import { ClubOfferExtendData } from './ClubOfferExtendData';
export class HabboClubExtendOfferMessageParser implements IMessageParser export class HabboClubExtendOfferMessageParser implements IMessageParser
{ {
private _offer: ClubOfferExtendedData; private _offer: ClubOfferExtendData;
public flush(): boolean public flush(): boolean
{ {
@ -16,12 +16,12 @@ export class HabboClubExtendOfferMessageParser implements IMessageParser
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._offer = new ClubOfferExtendedData(wrapper); this._offer = new ClubOfferExtendData(wrapper);
return true; return true;
} }
public get offer(): ClubOfferExtendedData public get offer(): ClubOfferExtendData
{ {
return this._offer; return this._offer;
} }

View File

@ -3,12 +3,12 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class IsOfferGiftableMessageParser implements IMessageParser export class IsOfferGiftableMessageParser implements IMessageParser
{ {
private _offerId: number; private _offerId: number;
private _Str_21271: boolean; private _isGiftable: boolean;
public flush(): boolean public flush(): boolean
{ {
this._offerId = 0; this._offerId = 0;
this._Str_21271 = false; this._isGiftable = false;
return true; return true;
} }
@ -18,7 +18,7 @@ export class IsOfferGiftableMessageParser implements IMessageParser
if(!wrapper) return false; if(!wrapper) return false;
this._offerId = wrapper.readInt(); this._offerId = wrapper.readInt();
this._Str_21271 = wrapper.readBoolean(); this._isGiftable = wrapper.readBoolean();
return true; return true;
} }
@ -28,8 +28,8 @@ export class IsOfferGiftableMessageParser implements IMessageParser
return this._offerId; return this._offerId;
} }
public get _Str_18028(): boolean public get isGiftable(): boolean
{ {
return this._Str_21271; return this._isGiftable;
} }
} }

View File

@ -2,14 +2,14 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class LimitedOfferAppearingNextMessageParser implements IMessageParser export class LimitedOfferAppearingNextMessageParser implements IMessageParser
{ {
private _Str_6800: number; private _appearsInSeconds: number;
private _pageId: number; private _pageId: number;
private _offerId: number; private _offerId: number;
private _productType: string; private _productType: string;
public flush(): boolean public flush(): boolean
{ {
this._Str_6800 = -1; this._appearsInSeconds = -1;
this._pageId = -1; this._pageId = -1;
this._offerId = -1; this._offerId = -1;
this._productType = ''; this._productType = '';
@ -21,7 +21,7 @@ export class LimitedOfferAppearingNextMessageParser implements IMessageParser
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._Str_6800 = wrapper.readInt(); this._appearsInSeconds = wrapper.readInt();
this._pageId = wrapper.readInt(); this._pageId = wrapper.readInt();
this._offerId = wrapper.readInt(); this._offerId = wrapper.readInt();
this._productType = wrapper.readString(); this._productType = wrapper.readString();
@ -29,9 +29,9 @@ export class LimitedOfferAppearingNextMessageParser implements IMessageParser
return true; return true;
} }
public get _Str_23051(): number public get appearsInSeconds(): number
{ {
return this._Str_6800; return this._appearsInSeconds;
} }
public get pageId(): number public get pageId(): number

View File

@ -2,14 +2,14 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
export class NotEnoughBalanceMessageParser implements IMessageParser export class NotEnoughBalanceMessageParser implements IMessageParser
{ {
private _Str_17433: boolean = false; private _notEnoughCredits: boolean = false;
private _Str_19031: boolean = false; private _notEnoughActivityPoints: boolean = false;
private _activityPointType: number = 0; private _activityPointType: number = 0;
public flush(): boolean public flush(): boolean
{ {
this._Str_17433 = false; this._notEnoughCredits = false;
this._Str_19031 = false; this._notEnoughActivityPoints = false;
this._activityPointType = 0; this._activityPointType = 0;
return true; return true;
@ -19,8 +19,8 @@ export class NotEnoughBalanceMessageParser implements IMessageParser
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._Str_17433 = wrapper.readBoolean(); this._notEnoughCredits = wrapper.readBoolean();
this._Str_19031 = wrapper.readBoolean(); this._notEnoughActivityPoints = wrapper.readBoolean();
if(wrapper.bytesAvailable) this._activityPointType = wrapper.readInt(); if(wrapper.bytesAvailable) this._activityPointType = wrapper.readInt();
@ -29,12 +29,12 @@ export class NotEnoughBalanceMessageParser implements IMessageParser
public get notEnoughCredits(): boolean public get notEnoughCredits(): boolean
{ {
return this._Str_17433; return this._notEnoughCredits;
} }
public get _Str_24352(): boolean public get notEnoughActivityPoints(): boolean
{ {
return this._Str_19031; return this._notEnoughActivityPoints;
} }
public get activityPointType(): number public get activityPointType(): number

View File

@ -15,7 +15,7 @@ export * from './ClubGiftData';
export * from './ClubGiftInfoParser'; export * from './ClubGiftInfoParser';
export * from './ClubGiftSelectedParser'; export * from './ClubGiftSelectedParser';
export * from './ClubOfferData'; export * from './ClubOfferData';
export * from './ClubOfferExtendedData'; export * from './ClubOfferExtendData';
export * from './DirectSMSClubBuyAvailableMessageParser'; export * from './DirectSMSClubBuyAvailableMessageParser';
export * from './FrontPageItem'; export * from './FrontPageItem';
export * from './GiftReceiverNotFoundParser'; export * from './GiftReceiverNotFoundParser';

View File

@ -2,32 +2,32 @@
export class IsUserPartOfCompetitionMessageParser implements IMessageParser export class IsUserPartOfCompetitionMessageParser implements IMessageParser
{ {
private _Str_8579: boolean; private _isPartOf: boolean;
private _Str_6987: number; private _targetId: number;
public flush(): boolean public flush(): boolean
{ {
this._Str_8579 = false; this._isPartOf = false;
this._Str_6987 = 0; this._targetId = 0;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
this._Str_8579 = wrapper.readBoolean(); this._isPartOf = wrapper.readBoolean();
this._Str_6987 = wrapper.readInt(); this._targetId = wrapper.readInt();
return true; return true;
} }
public get _Str_25348(): boolean public get isPartOf(): boolean
{ {
return this._Str_8579; return this._isPartOf;
} }
public get _Str_10760(): number public get targetId(): number
{ {
return this._Str_6987; return this._targetId;
} }
} }

View File

@ -2,32 +2,32 @@
export class SecondsUntilMessageParser implements IMessageParser export class SecondsUntilMessageParser implements IMessageParser
{ {
private _Str_8997: string; private _timeStr: string;
private _Str_21095: number; private _secondsUntil: number;
public flush(): boolean public flush(): boolean
{ {
this._Str_8997 = null; this._timeStr = null;
this._Str_21095 = 0; this._secondsUntil = 0;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
this._Str_8997 = wrapper.readString(); this._timeStr = wrapper.readString();
this._Str_21095 = wrapper.readInt(); this._secondsUntil = wrapper.readInt();
return true; return true;
} }
public get _Str_23288(): string public get timeStr(): string
{ {
return this._Str_8997; return this._timeStr;
} }
public get _Str_25497(): number public get secondsUntil(): number
{ {
return this._Str_21095; return this._secondsUntil;
} }
} }

View File

@ -61,7 +61,7 @@ export class ExtendedForumData extends ForumData
return (this._readPermissionError.length === 0); return (this._readPermissionError.length === 0);
} }
public get _Str_21331(): boolean public get canReport(): boolean
{ {
return true; return true;
} }

View File

@ -99,7 +99,7 @@ export class ForumData
return this._lastMessageTimeAsSecondsAgo; return this._lastMessageTimeAsSecondsAgo;
} }
public _Str_25309(forum: ForumData): void public updateFrom(forum: ForumData): void
{ {
this._totalThreads = forum._totalThreads; this._totalThreads = forum._totalThreads;
this._totalMessages = forum._totalMessages; this._totalMessages = forum._totalMessages;
@ -110,19 +110,19 @@ export class ForumData
this._lastMessageTimeAsSecondsAgo = forum._lastMessageTimeAsSecondsAgo; this._lastMessageTimeAsSecondsAgo = forum._lastMessageTimeAsSecondsAgo;
} }
public get _Str_12786(): number public get lastReadMessageId(): number
{ {
return (this._totalMessages - this._unreadMessages); return (this._totalMessages - this._unreadMessages);
} }
public set _Str_12786(k: number) public set lastReadMessageId(k: number)
{ {
this._unreadMessages = (this._totalMessages - k); this._unreadMessages = (this._totalMessages - k);
if(this._unreadMessages < 0) this._unreadMessages = 0; if(this._unreadMessages < 0) this._unreadMessages = 0;
} }
public _Str_23783(thread: GuildForumThread): void public addNewThread(thread: GuildForumThread): void
{ {
this._lastMessageAuthorId = thread.lastUserId; this._lastMessageAuthorId = thread.lastUserId;
this._lastMessageAuthorName = thread.lastUserName; this._lastMessageAuthorName = thread.lastUserName;

View File

@ -59,7 +59,7 @@ export class GuestRoomSearchResultData
return this._searchType; return this._searchType;
} }
public get _Str_25185(): string public get searchParam(): string
{ {
return this._searchParam; return this._searchParam;
} }

View File

@ -3,44 +3,44 @@ import { RoomDataParser } from '../../room';
export class OfficialRoomEntryData export class OfficialRoomEntryData
{ {
public static readonly _Str_14955 = 1; public static readonly TYPE_TAG = 1;
public static readonly _Str_12025 = 2; public static readonly TYPE_GUEST_ROOM = 2;
public static readonly _Str_16098 = 4; public static readonly TYPE_FOLDER = 4;
private _index: number; private _index: number;
private _Str_20260: string; private _popupCaption: string;
private _Str_21337: string; private _popupDesc: string;
private _Str_21113: boolean; private _showDetails: boolean;
private _picText: string; private _picText: string;
private _Str_6192: string; private _picRef: string;
private _Str_22099: number; private _folderId: number;
private _userCount: number; private _userCount: number;
private _type: number; private _type: number;
private _tag: string; private _tag: string;
private _Str_2567: RoomDataParser; private _guestRoomData: RoomDataParser;
private _open: boolean; private _open: boolean;
private _disposed: boolean; private _disposed: boolean;
constructor(k: IMessageDataWrapper) constructor(k: IMessageDataWrapper)
{ {
this._index = k.readInt(); this._index = k.readInt();
this._Str_20260 = k.readString(); this._popupCaption = k.readString();
this._Str_21337 = k.readString(); this._popupDesc = k.readString();
this._Str_21113 = k.readInt() == 1; this._showDetails = k.readInt() == 1;
this._picText = k.readString(); this._picText = k.readString();
this._Str_6192 = k.readString(); this._picRef = k.readString();
this._Str_22099 = k.readInt(); this._folderId = k.readInt();
this._userCount = k.readInt(); this._userCount = k.readInt();
this._type = k.readInt(); this._type = k.readInt();
if(this._type == OfficialRoomEntryData._Str_14955) if(this._type == OfficialRoomEntryData.TYPE_TAG)
{ {
this._tag = k.readString(); this._tag = k.readString();
} }
else else
{ {
if(this._type == OfficialRoomEntryData._Str_12025) if(this._type == OfficialRoomEntryData.TYPE_GUEST_ROOM)
{ {
this._Str_2567 = new RoomDataParser(k); this._guestRoomData = new RoomDataParser(k);
} }
else else
{ {
@ -56,10 +56,10 @@ export class OfficialRoomEntryData
return; return;
} }
this._disposed = true; this._disposed = true;
if(this._Str_2567 != null) if(this._guestRoomData != null)
{ {
this._Str_2567.flush(); this._guestRoomData.flush();
this._Str_2567 = null; this._guestRoomData = null;
} }
} }
@ -78,19 +78,19 @@ export class OfficialRoomEntryData
return this._index; return this._index;
} }
public get _Str_9428(): string public get popupCaption(): string
{ {
return this._Str_20260; return this._popupCaption;
} }
public get _Str_22426(): string public get popupDesc(): string
{ {
return this._Str_21337; return this._popupDesc;
} }
public get _Str_5386(): boolean public get showDetails(): boolean
{ {
return this._Str_21113; return this._showDetails;
} }
public get picText(): string public get picText(): string
@ -98,14 +98,14 @@ export class OfficialRoomEntryData
return this._picText; return this._picText;
} }
public get _Str_10304(): string public get picRef(): string
{ {
return this._Str_6192; return this._picRef;
} }
public get _Str_22186(): number public get folderId(): number
{ {
return this._Str_22099; return this._folderId;
} }
public get tag(): string public get tag(): string
@ -118,9 +118,9 @@ export class OfficialRoomEntryData
return this._userCount; return this._userCount;
} }
public get _Str_5019(): RoomDataParser public get guestRoomData(): RoomDataParser
{ {
return this._Str_2567; return this._guestRoomData;
} }
public get open(): boolean public get open(): boolean
@ -128,20 +128,20 @@ export class OfficialRoomEntryData
return this._open; return this._open;
} }
public _Str_16147(): void public toggleOpen(): void
{ {
this._open = !this._open; this._open = !this._open;
} }
public get _Str_23003(): number public get maxUsers(): number
{ {
if(this.type == OfficialRoomEntryData._Str_14955) if(this.type == OfficialRoomEntryData.TYPE_TAG)
{ {
return 0; return 0;
} }
if(this.type == OfficialRoomEntryData._Str_12025) if(this.type == OfficialRoomEntryData.TYPE_GUEST_ROOM)
{ {
return this._Str_2567.maxUserCount; return this._guestRoomData.maxUserCount;
} }
return 0; return 0;
} }

View File

@ -69,23 +69,23 @@ export class RoomSettingsData
return instance; return instance;
} }
// public static _Str_26097(k: number): string public static getDoorModeLocalizationKey(k: number): string
// { {
// switch (k) switch(k)
// { {
// case RoomSettingsData.DOORMODE_OPEN: case RoomSettingsData.DOORMODE_OPEN:
// return "${navigator.door.mode.open}"; return '${navigator.door.mode.open}';
// case RoomSettingsData.DOORMODE_CLOSED: case RoomSettingsData.DOORMODE_CLOSED:
// return "${navigator.door.mode.closed}"; return '${navigator.door.mode.closed}';
// case RoomSettingsData.DOORMODE_PASSWORD: case RoomSettingsData.DOORMODE_PASSWORD:
// return "${navigator.door.mode.password}"; return '${navigator.door.mode.password}';
// case RoomSettingsData.DOORMODE_INVISIBLE: case RoomSettingsData.DOORMODE_INVISIBLE:
// return "${navigator.door.mode.invisible}"; return '${navigator.door.mode.invisible}';
// case RoomSettingsData.DOORMODE_NOOBS_ONLY: case RoomSettingsData.DOORMODE_NOOBS_ONLY:
// return "${navigator.door.mode.noobs_only}"; return '${navigator.door.mode.noobs_only}';
// } }
// return ""; return '';
// } }
public get tradeMode(): number public get tradeMode(): number
{ {
@ -237,7 +237,7 @@ export class RoomSettingsData
this._tags = tags; this._tags = tags;
} }
public _Str_17474(id: number, data: FlatControllerData): void public setFlatController(id: number, data: FlatControllerData): void
{ {
this._controllersById.set(id, data); this._controllersById.set(id, data);
@ -284,7 +284,7 @@ export class RoomSettingsData
return this._highlightedUserId; return this._highlightedUserId;
} }
public _Str_22019(id: number, data: BannedUserData): void public setBannedUser(id: number, data: BannedUserData): void
{ {
this._bannedUsersById.set(id, data); this._bannedUsersById.set(id, data);

View File

@ -21,7 +21,7 @@
return this._roomName; return this._roomName;
} }
public get _Str_22776(): boolean public get hasControllers(): boolean
{ {
return this._hasControllers; return this._hasControllers;
} }

View File

@ -302,7 +302,7 @@ export class NitroLocalizationManager extends NitroManager implements INitroLoca
const badge = new BadgeBaseAndLevel(key); const badge = new BadgeBaseAndLevel(key);
const keys = ['badge_name_' + key, 'badge_name_' + badge.base]; const keys = ['badge_name_' + key, 'badge_name_' + badge.base];
let name = this._Str_2103(this.getExistingKey(keys)); let name = this.fixBadLocalization(this.getExistingKey(keys));
name = name.replace('%roman%', this.getRomanNumeral(badge.level)); name = name.replace('%roman%', this.getRomanNumeral(badge.level));
@ -314,7 +314,7 @@ export class NitroLocalizationManager extends NitroManager implements INitroLoca
const badge = new BadgeBaseAndLevel(key); const badge = new BadgeBaseAndLevel(key);
const keys = ['badge_desc_' + key, 'badge_desc_' + badge.base]; const keys = ['badge_desc_' + key, 'badge_desc_' + badge.base];
let desc = this._Str_2103(this.getExistingKey(keys)); let desc = this.fixBadLocalization(this.getExistingKey(keys));
const limit = this.getBadgePointLimit(key); const limit = this.getBadgePointLimit(key);
@ -336,7 +336,7 @@ export class NitroLocalizationManager extends NitroManager implements INitroLoca
return ''; return '';
} }
private _Str_2103(k: string): string private fixBadLocalization(k: string): string
{ {
return k.replace('${', '$') return k.replace('${', '$')
.replace('{', '$') .replace('{', '$')

View File

@ -27,7 +27,7 @@ export class FurnitureFireworksVisualization extends FurnitureAnimatedVisualizat
{ {
if(!this._particleSystems) if(!this._particleSystems)
{ {
this._Str_18684(); this.readDefinition();
if(this._particleSystems) this._currentParticleSystem = this._particleSystems.getValue(scale); if(this._particleSystems) this._currentParticleSystem = this._particleSystems.getValue(scale);
@ -39,7 +39,7 @@ export class FurnitureFireworksVisualization extends FurnitureAnimatedVisualizat
{ {
const particleSystem = this._particleSystems.getValue(scale); const particleSystem = this._particleSystems.getValue(scale);
particleSystem._Str_17988(this._currentParticleSystem); particleSystem.copyStateFrom(this._currentParticleSystem);
if(this._currentParticleSystem) this._currentParticleSystem.reset(); if(this._currentParticleSystem) this._currentParticleSystem.reset();
@ -84,7 +84,7 @@ export class FurnitureFireworksVisualization extends FurnitureAnimatedVisualizat
return super.getLayerYOffset(scale, direction, layerId); return super.getLayerYOffset(scale, direction, layerId);
} }
private _Str_18684(): boolean private readDefinition(): boolean
{ {
if(!this.object || !this.object.model) return false; if(!this.object || !this.object.model) return false;

View File

@ -290,7 +290,7 @@ export class FurnitureParticleSystem
} }
} }
public _Str_17988(particleSystem: FurnitureParticleSystem): void public copyStateFrom(particleSystem: FurnitureParticleSystem): void
{ {
let emitterId = 0; let emitterId = 0;