cleaned petdata

This commit is contained in:
Dank074 2021-06-23 04:52:35 -05:00
parent 39b9c2b969
commit 8fb1ff898a
8 changed files with 45 additions and 45 deletions

View File

@ -12,19 +12,19 @@ export class RoomDimmerPresetsMessageParser implements IMessageParser
this._presets = [];
}
public get _Str_10888(): number
public get presetCount(): number
{
return this._presets.length;
}
public get _Str_6226(): number
public get selectedPresetId(): number
{
return this._selectedPresetId;
}
public _Str_14989(k: number): MoodlightFromServer
public getPreset(k: number): MoodlightFromServer
{
if((k < 0) || (k >= this._Str_10888)) return null;
if((k < 0) || (k >= this.presetCount)) return null;
return this._presets[k];
}

View File

@ -26,7 +26,7 @@ export class PetInfoParser implements IMessageParser
private _maximumTimeToLive: number;
private _remainingTimeToLive: number;
private _remainingGrowTime: number;
private _Str_4460: number[];
private _skillTresholds: number[];
private _publiclyRideable: number;
private _unknownRarity: number;
private _publiclyBreedable: boolean;
@ -34,7 +34,7 @@ export class PetInfoParser implements IMessageParser
public flush(): boolean
{
this._id = -1;
this._Str_4460 = [];
this._skillTresholds = [];
return true;
}
@ -65,12 +65,12 @@ export class PetInfoParser implements IMessageParser
while(total > 0)
{
this._Str_4460.push(wrapper.readInt());
this._skillTresholds.push(wrapper.readInt());
total--;
}
this._Str_4460.sort();
this._skillTresholds.sort();
this._publiclyRideable = wrapper.readInt();
this._breedable = wrapper.readBoolean();
this._fullyGrown = wrapper.readBoolean();
@ -199,9 +199,9 @@ export class PetInfoParser implements IMessageParser
return this._remainingGrowTime;
}
public get _Str_3307(): number[]
public get skillTresholds(): number[]
{
return this._Str_4460;
return this._skillTresholds;
}
public get publiclyRideable(): number

View File

@ -6,8 +6,8 @@ export class FurnitureVoteMajorityVisualization extends FurnitureAnimatedVisuali
private static ONES_SPRITE: string = 'ones_sprite';
private static TENS_SPRITE: string = 'tens_sprite';
private static HUNDREDS_SPRITE: string = 'hundreds_sprite';
private static _Str_16109: number[] = [-1, 1];
private static _Str_17618: number = -1;
private static HIDE_RESULTS_STATES: number[] = [-1, 1];
private static HIDE_RESULTS_VALUE: number = -1;
protected getFrameNumber(scale: number, layerId: number): number
{
@ -27,7 +27,7 @@ export class FurnitureVoteMajorityVisualization extends FurnitureAnimatedVisuali
{
const result = this.object.model.getValue<number>(RoomObjectVariable.FURNITURE_VOTE_MAJORITY_RESULT);
if(((!(FurnitureVoteMajorityVisualization._Str_16109.indexOf(this.object.getState(0)) === -1)) || (result === FurnitureVoteMajorityVisualization._Str_17618)))
if(((!(FurnitureVoteMajorityVisualization.HIDE_RESULTS_STATES.indexOf(this.object.getState(0)) === -1)) || (result === FurnitureVoteMajorityVisualization.HIDE_RESULTS_VALUE)))
{
const tag = this.getLayerTag(scale, direction, layerId);

View File

@ -17,7 +17,7 @@
private _saddle: boolean;
private _rider: boolean;
private _breedable: boolean;
private _Str_4460: number[];
private _skillTresholds: number[];
private _publiclyRideable: number;
private _fullyGrown: boolean;
private _dead: boolean;
@ -26,7 +26,7 @@
private _remainingGrowTime: number;
private _rarityLevel: number;
private _publiclyBreedable: boolean;
private _Str_24910: number = 7;
private _adultLevel: number = 7;
public get id(): number
{
@ -188,14 +188,14 @@
this._rider = k;
}
public get _Str_3307(): number[]
public get skillTresholds(): number[]
{
return this._Str_4460;
return this._skillTresholds;
}
public set _Str_3307(k: number[])
public set skillTresholds(k: number[])
{
this._Str_4460 = k;
this._skillTresholds = k;
}
public get publiclyRideable(): number
@ -288,8 +288,8 @@
this._publiclyBreedable = k;
}
public get _Str_20651(): number
public get adultLevel(): number
{
return this._Str_24910;
return this._adultLevel;
}
}

View File

@ -4,7 +4,7 @@ import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionDimmerPresetsEvent extends RoomSessionEvent
{
public static RSDPE_PRESETS: string = 'RSDPE_PRESETS';
public static ROOM_DIMMER_PRESETS: string = 'RSDPE_PRESETS';
private _selectedPresetId: number = 0;
private _presets: RoomSessionDimmerPresetsEventPresetItem[];
@ -16,7 +16,7 @@ export class RoomSessionDimmerPresetsEvent extends RoomSessionEvent
this._presets = [];
}
public get _Str_10888(): number
public get presetCount(): number
{
return this._presets.length;
}
@ -31,13 +31,13 @@ export class RoomSessionDimmerPresetsEvent extends RoomSessionEvent
this._selectedPresetId = k;
}
public _Str_17287(k: number, _arg_2: number, _arg_3: number, _arg_4: number): void
public storePreset(k: number, _arg_2: number, _arg_3: number, _arg_4: number): void
{
const _local_5:RoomSessionDimmerPresetsEventPresetItem = new RoomSessionDimmerPresetsEventPresetItem(k, _arg_2, _arg_3, _arg_4);
this._presets[(k - 1)] = _local_5;
}
public _Str_14989(k: number):RoomSessionDimmerPresetsEventPresetItem
public getPreset(k: number):RoomSessionDimmerPresetsEventPresetItem
{
if(((k < 0) || (k >= this._presets.length)))
{

View File

@ -3,9 +3,9 @@ import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionWordQuizEvent extends RoomSessionEvent
{
public static RWPUW_NEW_QUESTION: string = 'RWPUW_NEW_QUESTION';
public static RWPUW_QUESION_FINSIHED: string = 'RWPUW_QUESION_FINSIHED';
public static RWPUW_QUESTION_ANSWERED: string = 'RWPUW_QUESTION_ANSWERED';
public static QUESTION: string = 'RWPUW_NEW_QUESTION';
public static FINISHED: string = 'RWPUW_QUESION_FINSIHED';
public static ANSWERED: string = 'RWPUW_QUESTION_ANSWERED';
private _id: number = -1;
private _pollType: string = null;
@ -29,32 +29,32 @@ export class RoomSessionWordQuizEvent extends RoomSessionEvent
return this._id;
}
public get _Str_5302(): string
public get pollType(): string
{
return this._pollType;
}
public set _Str_5302(k: string)
public set pollType(k: string)
{
this._pollType = k;
}
public get _Str_5213(): number
public get pollId(): number
{
return this._pollId;
}
public set _Str_5213(k: number)
public set pollId(k: number)
{
this._pollId = k;
}
public get _Str_3218(): number
public get questionId(): number
{
return this._questionId;
}
public set _Str_3218(k: number)
public set questionId(k: number)
{
this._questionId = k;
}
@ -99,13 +99,13 @@ export class RoomSessionWordQuizEvent extends RoomSessionEvent
this._value = k;
}
public get _Str_4036(): Map<string, number>
public get answerCounts(): Map<string, number>
{
return this._answerCounts;
}
public set _Str_4036(k: Map<string, number>)
public set answerCounts(k: Map<string, number>)
{
this._answerCounts = k;
}
}
}

View File

@ -10,10 +10,10 @@ export class RoomDimmerPresetsHandler extends BaseHandler
{
super(connection, listener);
connection.addMessageEvent(new RoomDimmerPresetsEvent(this._Str_25786.bind(this)));
connection.addMessageEvent(new RoomDimmerPresetsEvent(this.onRoomDimmerPresets.bind(this)));
}
private _Str_25786(k: RoomDimmerPresetsEvent): void
private onRoomDimmerPresets(k: RoomDimmerPresetsEvent): void
{
if(!k) return;
@ -25,19 +25,19 @@ export class RoomDimmerPresetsHandler extends BaseHandler
if(!session) return;
const event = new RoomSessionDimmerPresetsEvent(RoomSessionDimmerPresetsEvent.RSDPE_PRESETS, session);
const event = new RoomSessionDimmerPresetsEvent(RoomSessionDimmerPresetsEvent.ROOM_DIMMER_PRESETS, session);
event.selectedPresetId = parser._Str_6226;
event.selectedPresetId = parser.selectedPresetId;
let i = 0;
while(i < parser._Str_10888)
while(i < parser.presetCount)
{
const preset = parser._Str_14989(i);
const preset = parser.getPreset(i);
if(preset)
{
event._Str_17287(preset.id, preset.type, preset.color, preset.intensity);
event.storePreset(preset.id, preset.type, preset.color, preset.intensity);
}
i++;

View File

@ -237,7 +237,7 @@ export class RoomUsersHandler extends BaseHandler
petData.fullyGrown = parser.fullyGrown;
petData.rarityLevel = parser.rarityLevel;
petData.dead = parser.dead;
petData._Str_3307 = parser._Str_3307;
petData.skillTresholds = parser.skillTresholds;
petData.publiclyRideable = parser.publiclyRideable;
petData.maximumTimeToLive = parser.maximumTimeToLive;
petData.remainingTimeToLive = parser.remainingTimeToLive;