mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Navigator | Change name variables
This commit is contained in:
parent
961540b045
commit
153873faeb
@ -4,9 +4,9 @@ export class CancelEventMessageComposer implements IMessageComposer<ConstructorP
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CancelEventMessageComposer>;
|
||||
|
||||
constructor(k: number)
|
||||
constructor(adId: number)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [adId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class CompetitionRoomsSearchMessageComposer implements IMessageComposer<C
|
||||
{
|
||||
private _data: ConstructorParameters<typeof CompetitionRoomsSearchMessageComposer>;
|
||||
|
||||
constructor(k: number, _arg_2: number)
|
||||
constructor(goalId: number, pageIndex: number)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
this._data = [goalId, pageIndex];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class DeleteFavouriteRoomMessageComposer implements IMessageComposer<Cons
|
||||
{
|
||||
private _data: ConstructorParameters<typeof DeleteFavouriteRoomMessageComposer>;
|
||||
|
||||
constructor(k: number)
|
||||
constructor(flatId: number)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [flatId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class EditEventMessageComposer implements IMessageComposer<ConstructorPar
|
||||
{
|
||||
private _data: ConstructorParameters<typeof EditEventMessageComposer>;
|
||||
|
||||
constructor(k: number, _arg_2: string, _arg_3: string)
|
||||
constructor(adId: number, eventName: string, eventDesc: string)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3];
|
||||
this._data = [adId, eventName, eventDesc];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class ForwardToARandomPromotedRoomMessageComposer implements IMessageComp
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ForwardToARandomPromotedRoomMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
constructor(flatId: string)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [flatId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class ForwardToSomeRoomMessageComposer implements IMessageComposer<Constr
|
||||
{
|
||||
private _data: ConstructorParameters<typeof ForwardToSomeRoomMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
constructor(type: string)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [type];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class GetOfficialRoomsMessageComposer implements IMessageComposer<Constru
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GetOfficialRoomsMessageComposer>;
|
||||
|
||||
constructor(k: number = 0)
|
||||
constructor(adIndex: number = 0)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [adIndex];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class GuildBaseSearchMessageComposer implements IMessageComposer<Construc
|
||||
{
|
||||
private _data: ConstructorParameters<typeof GuildBaseSearchMessageComposer>;
|
||||
|
||||
constructor(k: number)
|
||||
constructor(adIndex: number)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [adIndex];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class NavigatorCategoryListModeComposer implements IMessageComposer<Const
|
||||
{
|
||||
private _data: ConstructorParameters<typeof NavigatorCategoryListModeComposer>;
|
||||
|
||||
constructor(category: string, listmode: number)
|
||||
constructor(category: string, listMode: number)
|
||||
{
|
||||
this._data = [category, listmode];
|
||||
this._data = [category, listMode];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class PopularRoomsSearchMessageComposer implements IMessageComposer<Const
|
||||
{
|
||||
private _data: ConstructorParameters<typeof PopularRoomsSearchMessageComposer>;
|
||||
|
||||
constructor(k: string, _arg_2: number)
|
||||
constructor(search: string, adIndex: number)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
this._data = [search, adIndex];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class RateFlatMessageComposer implements IMessageComposer<ConstructorPara
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RateFlatMessageComposer>;
|
||||
|
||||
constructor(k: number)
|
||||
constructor(flat: number)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [flat];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class RoomAdEventTabAdClickedComposer implements IMessageComposer<Constru
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomAdEventTabAdClickedComposer>;
|
||||
|
||||
constructor(k: number, _arg_2: string, _arg_3: number)
|
||||
constructor(flatId: number, roomAdName: string, roomAdExpiresInMin: number)
|
||||
{
|
||||
this._data = [k, _arg_2, _arg_3];
|
||||
this._data = [flatId, roomAdName, roomAdExpiresInMin];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class RoomAdSearchMessageComposer implements IMessageComposer<Constructor
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomAdSearchMessageComposer>;
|
||||
|
||||
constructor(k: number, _arg_2: number)
|
||||
constructor(adIndex: number, searchState: number)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
this._data = [adIndex, searchState];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class RoomTextSearchMessageComposer implements IMessageComposer<Construct
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomTextSearchMessageComposer>;
|
||||
|
||||
constructor(k: string)
|
||||
constructor(search: string)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [search];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class RoomsWithHighestScoreSearchMessageComposer implements IMessageCompo
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RoomsWithHighestScoreSearchMessageComposer>;
|
||||
|
||||
constructor(k: number)
|
||||
constructor(adIndex: number)
|
||||
{
|
||||
this._data = [k];
|
||||
this._data = [adIndex];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -4,9 +4,9 @@ export class SetRoomSessionTagsMessageComposer implements IMessageComposer<Const
|
||||
{
|
||||
private _data: ConstructorParameters<typeof SetRoomSessionTagsMessageComposer>;
|
||||
|
||||
constructor(k: string, _arg_2: string)
|
||||
constructor(tag1: string, tag2: string)
|
||||
{
|
||||
this._data = [k, _arg_2];
|
||||
this._data = [tag1, tag2];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
|
@ -3,11 +3,10 @@ import { GuestRoomSearchResultData } from './utils';
|
||||
|
||||
export class GuestRoomSearchResultMessageParser implements IMessageParser
|
||||
{
|
||||
_data: GuestRoomSearchResultData;
|
||||
private _data: GuestRoomSearchResultData;
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -11,5 +11,4 @@ export class RoomEventCancelMessageParser implements IMessageParser
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,5 +26,4 @@ export class RoomThumbnailUpdateResultMessageParser implements IMessageParser
|
||||
{
|
||||
return this._resultCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,18 +5,18 @@ export class CategoriesWithVisitorCountData
|
||||
private _categoryToCurrentUserCountMap: Map<number, number>;
|
||||
private _categoryToMaxUserCountMap: Map<number, number>;
|
||||
|
||||
constructor(k: IMessageDataWrapper)
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._categoryToCurrentUserCountMap = new Map();
|
||||
this._categoryToMaxUserCountMap = new Map();
|
||||
|
||||
const count = k.readInt();
|
||||
const count = wrapper.readInt();
|
||||
|
||||
for(let i = 0; i < count; i++)
|
||||
{
|
||||
const _local_4 = k.readInt();
|
||||
const _local_5 = k.readInt();
|
||||
const _local_6 = k.readInt();
|
||||
const _local_4 = wrapper.readInt();
|
||||
const _local_5 = wrapper.readInt();
|
||||
const _local_6 = wrapper.readInt();
|
||||
this._categoryToCurrentUserCountMap.set(_local_4, _local_5);
|
||||
this._categoryToMaxUserCountMap.set(_local_4, _local_6);
|
||||
}
|
||||
|
@ -6,16 +6,16 @@ export class CompetitionRoomsData
|
||||
private _pageIndex: number;
|
||||
private _pageCount: number;
|
||||
|
||||
constructor(k: IMessageDataWrapper, _arg_2: number = 0, _arg_3: number = 0)
|
||||
constructor(wrapper: IMessageDataWrapper, goalId: number = 0, pageIndex: number = 0)
|
||||
{
|
||||
this._goalId = _arg_2;
|
||||
this._pageIndex = _arg_3;
|
||||
this._goalId = goalId;
|
||||
this._pageIndex = pageIndex;
|
||||
|
||||
if(k)
|
||||
if(wrapper)
|
||||
{
|
||||
this._goalId = k.readInt();
|
||||
this._pageIndex = k.readInt();
|
||||
this._pageCount = k.readInt();
|
||||
this._goalId = wrapper.readInt();
|
||||
this._pageIndex = wrapper.readInt();
|
||||
this._pageCount = wrapper.readInt();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,20 +10,24 @@ export class GuestRoomSearchResultData
|
||||
private _ad: OfficialRoomEntryData;
|
||||
private _disposed: boolean;
|
||||
|
||||
constructor(k: IMessageDataWrapper)
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._rooms = [];
|
||||
this._searchType = k.readInt();
|
||||
this._searchParam = k.readString();
|
||||
const count = k.readInt();
|
||||
this._searchType = wrapper.readInt();
|
||||
this._searchParam = wrapper.readString();
|
||||
|
||||
const count = wrapper.readInt();
|
||||
|
||||
for(let i = 0; i < count; i++)
|
||||
{
|
||||
this._rooms.push(new RoomDataParser(k));
|
||||
this._rooms.push(new RoomDataParser(wrapper));
|
||||
}
|
||||
const hasAdditional = k.readBoolean();
|
||||
|
||||
const hasAdditional = wrapper.readBoolean();
|
||||
|
||||
if(hasAdditional)
|
||||
{
|
||||
this._ad = new OfficialRoomEntryData(k);
|
||||
this._ad = new OfficialRoomEntryData(wrapper);
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +37,9 @@ export class GuestRoomSearchResultData
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this._disposed = true;
|
||||
|
||||
if(this._rooms != null)
|
||||
{
|
||||
for(const k of this._rooms)
|
||||
@ -41,11 +47,13 @@ export class GuestRoomSearchResultData
|
||||
k.flush();
|
||||
}
|
||||
}
|
||||
|
||||
if(this._ad != null)
|
||||
{
|
||||
this._ad.dispose();
|
||||
this._ad = null;
|
||||
}
|
||||
|
||||
this._rooms = null;
|
||||
}
|
||||
|
||||
|
@ -21,30 +21,30 @@ export class OfficialRoomEntryData
|
||||
private _open: boolean;
|
||||
private _disposed: boolean;
|
||||
|
||||
constructor(k: IMessageDataWrapper)
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._index = k.readInt();
|
||||
this._popupCaption = k.readString();
|
||||
this._popupDesc = k.readString();
|
||||
this._showDetails = k.readInt() == 1;
|
||||
this._picText = k.readString();
|
||||
this._picRef = k.readString();
|
||||
this._folderId = k.readInt();
|
||||
this._userCount = k.readInt();
|
||||
this._type = k.readInt();
|
||||
this._index = wrapper.readInt();
|
||||
this._popupCaption = wrapper.readString();
|
||||
this._popupDesc = wrapper.readString();
|
||||
this._showDetails = wrapper.readInt() == 1;
|
||||
this._picText = wrapper.readString();
|
||||
this._picRef = wrapper.readString();
|
||||
this._folderId = wrapper.readInt();
|
||||
this._userCount = wrapper.readInt();
|
||||
this._type = wrapper.readInt();
|
||||
if(this._type == OfficialRoomEntryData.TYPE_TAG)
|
||||
{
|
||||
this._tag = k.readString();
|
||||
this._tag = wrapper.readString();
|
||||
}
|
||||
else
|
||||
{
|
||||
if(this._type == OfficialRoomEntryData.TYPE_GUEST_ROOM)
|
||||
{
|
||||
this._guestRoomData = new RoomDataParser(k);
|
||||
this._guestRoomData = new RoomDataParser(wrapper);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._open = k.readBoolean();
|
||||
this._open = wrapper.readBoolean();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -55,7 +55,9 @@ export class OfficialRoomEntryData
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this._disposed = true;
|
||||
|
||||
if(this._guestRoomData != null)
|
||||
{
|
||||
this._guestRoomData.flush();
|
||||
@ -139,10 +141,12 @@ export class OfficialRoomEntryData
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(this.type == OfficialRoomEntryData.TYPE_GUEST_ROOM)
|
||||
{
|
||||
return this._guestRoomData.maxUserCount;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -14,28 +14,35 @@ export class RoomEventData
|
||||
private _expirationDate: Date;
|
||||
private _disposed: boolean;
|
||||
|
||||
constructor(k: IMessageDataWrapper)
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._adId = k.readInt();
|
||||
this._ownerAvatarId = k.readInt();
|
||||
this._ownerAvatarName = k.readString();
|
||||
this._flatId = k.readInt();
|
||||
this._eventType = k.readInt();
|
||||
this._eventName = k.readString();
|
||||
this._eventDescription = k.readString();
|
||||
const _local_2 = k.readInt();
|
||||
const _local_3 = k.readInt();
|
||||
this._adId = wrapper.readInt();
|
||||
this._ownerAvatarId = wrapper.readInt();
|
||||
this._ownerAvatarName = wrapper.readString();
|
||||
this._flatId = wrapper.readInt();
|
||||
this._eventType = wrapper.readInt();
|
||||
this._eventName = wrapper.readString();
|
||||
this._eventDescription = wrapper.readString();
|
||||
|
||||
const _local_2 = wrapper.readInt();
|
||||
const _local_3 = wrapper.readInt();
|
||||
const _local_4: Date = new Date();
|
||||
|
||||
let _local_5 = _local_4.getTime();
|
||||
const _local_6 = ((_local_2 * 60) * 1000);
|
||||
|
||||
_local_5 = (_local_5 - _local_6);
|
||||
|
||||
const _local_7: Date = new Date(_local_5);
|
||||
this._creationTime = ((((((((_local_7.getDate() + '-') + _local_7.getMonth()) + '-') + _local_7.getFullYear()) + ' ') + _local_7.getHours()) + ':') + _local_7.getMinutes());
|
||||
|
||||
let _local_8 = _local_4.getTime();
|
||||
const _local_9 = ((_local_3 * 60) * 1000);
|
||||
|
||||
_local_8 = (_local_8 + _local_9);
|
||||
|
||||
this._expirationDate = new Date(_local_8);
|
||||
this._categoryId = k.readInt();
|
||||
this._categoryId = wrapper.readInt();
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
|
Loading…
Reference in New Issue
Block a user