cleaned ModeratorUserInfoData

This commit is contained in:
Dank074 2021-06-06 20:10:57 -05:00
parent 26136d6d29
commit 10e6e8ed7c
11 changed files with 165 additions and 167 deletions

View File

@ -36,7 +36,7 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
let _local_5 = ''; let _local_5 = '';
if(this._base !== '') _local_5 = this._Str_2108().toString(); if(this._base !== '') _local_5 = this.baseAsInt().toString();
if(_arg_3) if(_arg_3)
{ {
@ -50,7 +50,7 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
return this._items; return this._items;
} }
private _Str_2108(): number private baseAsInt(): number
{ {
let k = 0; let k = 0;
let index = 0; let index = 0;
@ -70,7 +70,7 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
return this._id; return this._id;
} }
public get _Str_891(): number public get animationFrame(): number
{ {
return this._animationFrame; return this._animationFrame;
} }

View File

@ -4,7 +4,7 @@ export interface IAnimationLayerData
{ {
id: string; id: string;
action: IActiveActionData; action: IActiveActionData;
_Str_891: number; animationFrame: number;
dx: number; dx: number;
dy: number; dy: number;
dz: number; dz: number;

View File

@ -225,7 +225,7 @@ export class AvatarImageCache
_local_11.y = (_local_18.dy / 2); _local_11.y = (_local_18.dy / 2);
} }
frameCount = _local_18._Str_891; frameCount = _local_18.animationFrame;
if(_local_18.action) if(_local_18.action)
{ {

View File

@ -25,5 +25,5 @@
public static RIGHT_HAND_ITEM: string = 'ri'; public static RIGHT_HAND_ITEM: string = 'ri';
public static LEFT_COAT_SLEEVE: string = 'lc'; public static LEFT_COAT_SLEEVE: string = 'lc';
public static RIGHT_COAT_SLEEVE: string = 'rc'; public static RIGHT_COAT_SLEEVE: string = 'rc';
public static _Str_1286: string[] = [ AvatarFigurePartType.SHOES, AvatarFigurePartType.LEGS, AvatarFigurePartType.CHEST, AvatarFigurePartType.WAIST_ACCESSORY, AvatarFigurePartType.CHEST_ACCESSORY, AvatarFigurePartType.HEAD, AvatarFigurePartType.HAIR, AvatarFigurePartType.FACE_ACCESSORY, AvatarFigurePartType.EYE_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY_EXTRA, AvatarFigurePartType.COAT_CHEST, AvatarFigurePartType.CHEST_PRINT ]; public static FIGURE_SETS: string[] = [ AvatarFigurePartType.SHOES, AvatarFigurePartType.LEGS, AvatarFigurePartType.CHEST, AvatarFigurePartType.WAIST_ACCESSORY, AvatarFigurePartType.CHEST_ACCESSORY, AvatarFigurePartType.HEAD, AvatarFigurePartType.HAIR, AvatarFigurePartType.FACE_ACCESSORY, AvatarFigurePartType.EYE_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY_EXTRA, AvatarFigurePartType.COAT_CHEST, AvatarFigurePartType.CHEST_PRINT ];
} }

View File

@ -1,12 +1,10 @@
import { ModeratorUserInfoData } from 'nitro-renderer/src/nitro/communication/messages/parser/modtool/utils/ModeratorUserInfoData';
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper'; import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser'; import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
import { ModtoolUserChatlogParserVisit } from './utils/ModtoolUserChatlogParserVisit';
import { ModtoolUserChatlogParserChatlog } from './utils/ModtoolUserChatlogParserChatlog';
import { _Str_5467 } from './utils/_Str_5467';
export class ModtoolUserInfoParser implements IMessageParser export class ModtoolUserInfoParser implements IMessageParser
{ {
private _data: _Str_5467; private _data: ModeratorUserInfoData;
public flush(): boolean public flush(): boolean
{ {
@ -19,12 +17,12 @@ export class ModtoolUserInfoParser implements IMessageParser
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._data = new _Str_5467(wrapper); this._data = new ModeratorUserInfoData(wrapper);
return true; return true;
} }
public get data(): _Str_5467 public get data(): ModeratorUserInfoData
{ {
return this._data; return this._data;
} }

View File

@ -0,0 +1,145 @@
import { IMessageDataWrapper } from 'nitro-renderer/src/core/communication/messages/IMessageDataWrapper';
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;
constructor(wrapper: IMessageDataWrapper)
{
this._userId = wrapper.readInt();
this._userName = wrapper.readString();
this._figure = wrapper.readString();
this._registrationAgeInMinutes = wrapper.readInt();
this._minutesSinceLastLogin = wrapper.readInt();
this._online = wrapper.readBoolean();
this._cfhCount = wrapper.readInt();
this._abusiveCfhCount = wrapper.readInt();
this._cautionCount = wrapper.readInt();
this._banCount = wrapper.readInt();
this._tradingLockCount = wrapper.readInt();
this._tradingExpiryDate = wrapper.readString();
this._lastPurchaseDate = wrapper.readString();
this._identityId = wrapper.readInt();
this._identityRelatedBanCount = wrapper.readInt();
this._primaryEmailAddress = wrapper.readString();
this._userClassification = wrapper.readString();
if(wrapper.bytesAvailable)
{
this._lastSanctionTime = wrapper.readString();
this._sanctionAgeHours = wrapper.readInt();
}
}
public get userId():number
{
return this._userId;
}
public get userName():string
{
return this._userName;
}
public get figure():string
{
return this._figure;
}
public get registrationAgeInMinutes():number
{
return this._registrationAgeInMinutes;
}
public get minutesSinceLastLogin():number
{
return this._minutesSinceLastLogin;
}
public get online():boolean
{
return this._online;
}
public get cfhCount():number
{
return this._cfhCount;
}
public get abusiveCfhCount():number
{
return this._abusiveCfhCount;
}
public get cautionCount():number
{
return this._cautionCount;
}
public get banCount():number
{
return this._banCount;
}
public get tradingLockCount():number
{
return this._tradingLockCount;
}
public get tradingExpiryDate():string
{
return this._tradingExpiryDate;
}
public get lastPurchaseDate():string
{
return this._lastPurchaseDate;
}
public get identityId():number
{
return this._identityId;
}
public get identityRelatedBanCount():number
{
return this._identityRelatedBanCount;
}
public get primaryEmailAddress():string
{
return this._primaryEmailAddress;
}
public get userClassification():string
{
return this._userClassification;
}
public get lastSanctionTime():string
{
return this._lastSanctionTime;
}
public get sanctionAgeHours():number
{
return this._sanctionAgeHours;
}
}

View File

@ -1,145 +0,0 @@
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
export class _Str_5467
{
private _userId:number;
private _userName:string;
private _Str_19258:number;
private _Str_20876:number;
private _online:boolean;
private _Str_21621:number;
private _Str_20013:number;
private _Str_20917:number;
private _Str_20349:number;
private _Str_21386:number;
private _Str_20848:string;
private _Str_21819:string;
private _Str_20982:number;
private _Str_19460:number;
private _Str_22254:string;
private _figure:string;
private _Str_20625:string;
private _Str_19116:string = '';
private _Str_20729:number = 0;
constructor(wrapper: IMessageDataWrapper)
{
this._userId = wrapper.readInt();
this._userName = wrapper.readString();
this._figure = wrapper.readString();
this._Str_19258 = wrapper.readInt();
this._Str_20876 = wrapper.readInt();
this._online = wrapper.readBoolean();
this._Str_21621 = wrapper.readInt();
this._Str_20013 = wrapper.readInt();
this._Str_20917 = wrapper.readInt();
this._Str_20349 = wrapper.readInt();
this._Str_21386 = wrapper.readInt();
this._Str_20848 = wrapper.readString();
this._Str_21819 = wrapper.readString();
this._Str_20982 = wrapper.readInt();
this._Str_19460 = wrapper.readInt();
this._Str_22254 = wrapper.readString();
this._Str_20625 = wrapper.readString();
if(wrapper.bytesAvailable)
{
this._Str_19116 = wrapper.readString();
this._Str_20729 = wrapper.readInt();
}
}
public get userId():number
{
return this._userId;
}
public get userName():string
{
return this._userName;
}
public get figure():string
{
return this._figure;
}
public get _Str_24334():number
{
return this._Str_19258;
}
public get _Str_23276():number
{
return this._Str_20876;
}
public get online():boolean
{
return this._online;
}
public get _Str_24656():number
{
return this._Str_21621;
}
public get _Str_22987():number
{
return this._Str_20013;
}
public get _Str_16987():number
{
return this._Str_20917;
}
public get _Str_20373():number
{
return this._Str_20349;
}
public get _Str_24526():number
{
return this._Str_21386;
}
public get _Str_23969():string
{
return this._Str_20848;
}
public get _Str_22786():string
{
return this._Str_21819;
}
public get _Str_25657():number
{
return this._Str_20982;
}
public get _Str_22700():number
{
return this._Str_19460;
}
public get _Str_20219():string
{
return this._Str_22254;
}
public get _Str_22262():string
{
return this._Str_20625;
}
public get _Str_24447():string
{
return this._Str_19116;
}
public get _Str_19137():number
{
return this._Str_20729;
}
}

View File

@ -1,5 +1,6 @@
export * from './CallForHelpCategoryData'; export * from './CallForHelpCategoryData';
export * from './IChatlog'; export * from './IChatlog';
export * from './ModeratorUserInfoData';
export * from './ModtoolRoomChatlogLine'; export * from './ModtoolRoomChatlogLine';
export * from './ModtoolRoomVisitedData'; export * from './ModtoolRoomVisitedData';
export * from './ModtoolUserChatlogParserChatlog'; export * from './ModtoolUserChatlogParserChatlog';
@ -8,5 +9,4 @@ export * from './ModtoolUserVisitedRoomsRoom';
export * from './_Str_2484'; export * from './_Str_2484';
export * from './_Str_5018'; export * from './_Str_5018';
export * from './_Str_5460'; export * from './_Str_5460';
export * from './_Str_5467';
export * from './_Str_8176'; export * from './_Str_8176';

View File

@ -2454,7 +2454,7 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
sprite.y = (y - (rectangle.height / 2)); sprite.y = (y - (rectangle.height / 2));
} }
if(!this._Str_25871(canvas, x, y, type, altKey, ctrlKey, shiftKey)) if(!this.handleRoomDragging(canvas, x, y, type, altKey, ctrlKey, shiftKey))
{ {
if(!canvas.handleMouseEvent(x, y, type, altKey, ctrlKey, shiftKey, buttonDown)) if(!canvas.handleMouseEvent(x, y, type, altKey, ctrlKey, shiftKey, buttonDown))
{ {
@ -2487,7 +2487,7 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
this._activeRoomActiveCanvasMouseY = y; this._activeRoomActiveCanvasMouseY = y;
} }
private _Str_25871(canvas: IRoomRenderingCanvas, x: number, y: number, type: string, altKey: boolean, ctrlKey: boolean, shiftKey: boolean): boolean private handleRoomDragging(canvas: IRoomRenderingCanvas, x: number, y: number, type: string, altKey: boolean, ctrlKey: boolean, shiftKey: boolean): boolean
{ {
let offsetX = (x - this._activeRoomActiveCanvasMouseX); let offsetX = (x - this._activeRoomActiveCanvasMouseX);
let offsetY = (y - this._activeRoomActiveCanvasMouseY); let offsetY = (y - this._activeRoomActiveCanvasMouseY);

View File

@ -408,7 +408,7 @@ export class AvatarVisualization extends RoomObjectSpriteVisualization implement
if(layerData) if(layerData)
{ {
frameNumber = layerData._Str_891; frameNumber = layerData.animationFrame;
offsetX += layerData.dx; offsetX += layerData.dx;
offsetY += layerData.dy; offsetY += layerData.dy;
dd += layerData.dd; dd += layerData.dd;

View File

@ -17,7 +17,7 @@
this._index = 0; this._index = 0;
} }
public _Str_22775(k: number): void public addValue(k: number): void
{ {
if(this._data.length < this._maxSize) if(this._data.length < this._maxSize)
{ {
@ -31,7 +31,7 @@
this._index = ((this._index + 1) % this._maxSize); this._index = ((this._index + 1) % this._maxSize);
} }
public _Str_25797(): number public getMax(): number
{ {
let k = Number.MIN_VALUE; let k = Number.MIN_VALUE;
@ -47,7 +47,7 @@
return k; return k;
} }
public _Str_26219(): number public getMin(): number
{ {
let k = Number.MAX_VALUE; let k = Number.MAX_VALUE;