mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Add GetResolutionAchievementsMessageComposer
This commit is contained in:
parent
c6a7482bcc
commit
4d3a13e2bd
@ -275,6 +275,7 @@ import { SendMessageComposer } from './messages/outgoing/friendlist/SendMessageC
|
|||||||
import { SendRoomInviteComposer } from './messages/outgoing/friendlist/SendRoomInviteComposer';
|
import { SendRoomInviteComposer } from './messages/outgoing/friendlist/SendRoomInviteComposer';
|
||||||
import { SetRelationshipStatusComposer } from './messages/outgoing/friendlist/SetRelationshipStatusComposer';
|
import { SetRelationshipStatusComposer } from './messages/outgoing/friendlist/SetRelationshipStatusComposer';
|
||||||
import { VisitUserComposer } from './messages/outgoing/friendlist/VisitUserComposer';
|
import { VisitUserComposer } from './messages/outgoing/friendlist/VisitUserComposer';
|
||||||
|
import { GetResolutionAchievementsMessageComposer } from './messages/outgoing/game/GetResolutionAchievementsMessageComposer';
|
||||||
import { GroupAdminGiveComposer } from './messages/outgoing/group/GroupAdminGiveComposer';
|
import { GroupAdminGiveComposer } from './messages/outgoing/group/GroupAdminGiveComposer';
|
||||||
import { GroupAdminTakeComposer } from './messages/outgoing/group/GroupAdminTakeComposer';
|
import { GroupAdminTakeComposer } from './messages/outgoing/group/GroupAdminTakeComposer';
|
||||||
import { GroupBadgePartsComposer } from './messages/outgoing/group/GroupBadgePartsComposer';
|
import { GroupBadgePartsComposer } from './messages/outgoing/group/GroupBadgePartsComposer';
|
||||||
@ -1374,6 +1375,8 @@ export class NitroMessages implements IMessageConfiguration
|
|||||||
|
|
||||||
// TALENT
|
// TALENT
|
||||||
this._composers.set(OutgoingHeader.HELPER_TALENT_TRACK, TalentTrackComposer);
|
this._composers.set(OutgoingHeader.HELPER_TALENT_TRACK, TalentTrackComposer);
|
||||||
|
|
||||||
|
this._composers.set(OutgoingHeader.ACHIEVEMENT_RESOLUTION_OPEN, GetResolutionAchievementsMessageComposer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get events(): Map<number, Function>
|
public get events(): Map<number, Function>
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core';
|
||||||
|
|
||||||
|
export class GetResolutionAchievementsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetResolutionAchievementsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetResolutionAchievementsMessageComposer>;
|
||||||
|
|
||||||
|
constructor(objectId: number, achievementId: number)
|
||||||
|
{
|
||||||
|
this._data = [ objectId, achievementId ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
1
src/nitro/communication/messages/outgoing/game/index.ts
Normal file
1
src/nitro/communication/messages/outgoing/game/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './GetResolutionAchievementsMessageComposer';
|
@ -8,6 +8,7 @@ export * from './crafting';
|
|||||||
export * from './desktop';
|
export * from './desktop';
|
||||||
export * from './friendfurni';
|
export * from './friendfurni';
|
||||||
export * from './friendlist';
|
export * from './friendlist';
|
||||||
|
export * from './game';
|
||||||
export * from './gifts';
|
export * from './gifts';
|
||||||
export * from './group';
|
export * from './group';
|
||||||
export * from './groupforums';
|
export * from './groupforums';
|
||||||
|
@ -12,6 +12,7 @@ import { IVector3D } from '../../room/utils/IVector3D';
|
|||||||
import { RoomEnterEffect } from '../../room/utils/RoomEnterEffect';
|
import { RoomEnterEffect } from '../../room/utils/RoomEnterEffect';
|
||||||
import { Vector3d } from '../../room/utils/Vector3d';
|
import { Vector3d } from '../../room/utils/Vector3d';
|
||||||
import { FurnitureGroupInfoComposer, SetObjectDataMessageComposer } from '../communication';
|
import { FurnitureGroupInfoComposer, SetObjectDataMessageComposer } from '../communication';
|
||||||
|
import { GetResolutionAchievementsMessageComposer } from '../communication/messages/outgoing/game/GetResolutionAchievementsMessageComposer';
|
||||||
import { BotPlaceComposer } from '../communication/messages/outgoing/room/engine/BotPlaceComposer';
|
import { BotPlaceComposer } from '../communication/messages/outgoing/room/engine/BotPlaceComposer';
|
||||||
import { GetItemDataComposer } from '../communication/messages/outgoing/room/engine/GetItemDataComposer';
|
import { GetItemDataComposer } from '../communication/messages/outgoing/room/engine/GetItemDataComposer';
|
||||||
import { PetMoveComposer } from '../communication/messages/outgoing/room/engine/PetMoveComposer';
|
import { PetMoveComposer } from '../communication/messages/outgoing/room/engine/PetMoveComposer';
|
||||||
@ -835,8 +836,7 @@ export class RoomObjectEventHandler extends Disposable implements IRoomCanvasMou
|
|||||||
eventDispatcher.dispatchEvent(new RoomEngineTriggerWidgetEvent(RoomEngineTriggerWidgetEvent.REQUEST_MYSTERYTROPHY_OPEN_DIALOG, roomId, objectId, objectCategory));
|
eventDispatcher.dispatchEvent(new RoomEngineTriggerWidgetEvent(RoomEngineTriggerWidgetEvent.REQUEST_MYSTERYTROPHY_OPEN_DIALOG, roomId, objectId, objectCategory));
|
||||||
return;
|
return;
|
||||||
case RoomObjectWidgetRequestEvent.ACHIEVEMENT_RESOLUTION_OPEN:
|
case RoomObjectWidgetRequestEvent.ACHIEVEMENT_RESOLUTION_OPEN:
|
||||||
//this._roomEngine.connection.send();
|
this._roomEngine.connection.send(new GetResolutionAchievementsMessageComposer(event.objectId, 0));
|
||||||
// new _Str_4406(k._Str_1577, 0)
|
|
||||||
return;
|
return;
|
||||||
case RoomObjectWidgetRequestEvent.ACHIEVEMENT_RESOLUTION_ENGRAVING:
|
case RoomObjectWidgetRequestEvent.ACHIEVEMENT_RESOLUTION_ENGRAVING:
|
||||||
eventDispatcher.dispatchEvent(new RoomEngineTriggerWidgetEvent(RoomEngineTriggerWidgetEvent.REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING, roomId, objectId, objectCategory));
|
eventDispatcher.dispatchEvent(new RoomEngineTriggerWidgetEvent(RoomEngineTriggerWidgetEvent.REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING, roomId, objectId, objectCategory));
|
||||||
|
Loading…
Reference in New Issue
Block a user