mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
added camera outgoing messages
This commit is contained in:
parent
4a3150bf89
commit
4955257388
@ -226,6 +226,12 @@ import { UserCurrencyUpdateEvent } from './messages/incoming/user/inventory/curr
|
||||
import { UserSubscriptionEvent } from './messages/incoming/user/inventory/subscription/UserSubscriptionEvent';
|
||||
import { UserWardrobePageEvent } from './messages/incoming/user/wardrobe/UserWardrobePageEvent';
|
||||
import { RequestAchievementsMessageComposer } from './messages/outgoing/achievements/RequestAchievementsMessageComposer';
|
||||
import { PhotoCompetitionMessageComposer } from './messages/outgoing/camera/PhotoCompetitionMessageComposer';
|
||||
import { PublishPhotoMessageComposer } from './messages/outgoing/camera/PublishPhotoMessageComposer';
|
||||
import { PurchasePhotoMessageComposer } from './messages/outgoing/camera/PurchasePhotoMessageComposer';
|
||||
import { RenderRoomMessageComposer } from './messages/outgoing/camera/RenderRoomMessageComposer';
|
||||
import { RenderRoomThumbnailMessageComposer } from './messages/outgoing/camera/RenderRoomThumbnailMessageComposer';
|
||||
import { RequestCameraConfigurationComposer } from './messages/outgoing/camera/RequestCameraConfigurationComposer';
|
||||
import { CatalogGroupsComposer } from './messages/outgoing/catalog/CatalogGroupsComposer';
|
||||
import { CatalogModeComposer } from './messages/outgoing/catalog/CatalogModeComposer';
|
||||
import { CatalogPageComposer } from './messages/outgoing/catalog/CatalogPageComposer';
|
||||
@ -1155,6 +1161,14 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._composers.set(OutgoingHeader.GET_CRAFTABLE_PRODUCTS, GetCraftableProductsComposer);
|
||||
this._composers.set(OutgoingHeader.GET_CRAFTING_RECIPE, GetCraftingRecipeComposer);
|
||||
this._composers.set(OutgoingHeader.GET_CRAFTING_RECIPES_AVAILABLE, GetCraftingRecipesAvailableComposer);
|
||||
|
||||
// CAMERA
|
||||
this._composers.set(OutgoingHeader.REQUEST_CAMERA_CONFIGURATION, RequestCameraConfigurationComposer);
|
||||
this._composers.set(OutgoingHeader.RENDER_ROOM, RenderRoomMessageComposer);
|
||||
this._composers.set(OutgoingHeader.RENDER_ROOM_THUMBNAIL, RenderRoomThumbnailMessageComposer);
|
||||
this._composers.set(OutgoingHeader.PURCHASE_PHOTO, PurchasePhotoMessageComposer);
|
||||
this._composers.set(OutgoingHeader.PUBLISH_PHOTO, PublishPhotoMessageComposer);
|
||||
this._composers.set(OutgoingHeader.PHOTO_COMPETITION, PhotoCompetitionMessageComposer);
|
||||
}
|
||||
|
||||
public get events(): Map<number, Function>
|
||||
|
@ -270,4 +270,10 @@ export class OutgoingHeader
|
||||
public static GET_CRAFTABLE_PRODUCTS = 633;
|
||||
public static GET_CRAFTING_RECIPE = 1173;
|
||||
public static GET_CRAFTING_RECIPES_AVAILABLE = 3086;
|
||||
public static PHOTO_COMPETITION = 3959;
|
||||
public static PUBLISH_PHOTO = 2068;
|
||||
public static PURCHASE_PHOTO = 2408;
|
||||
public static RENDER_ROOM = 3226;
|
||||
public static RENDER_ROOM_THUMBNAIL = 1982;
|
||||
public static REQUEST_CAMERA_CONFIGURATION = 796;
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class PhotoCompetitionMessageComposer implements IMessageComposer<ConstructorParameters<typeof PhotoCompetitionMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof PhotoCompetitionMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class PublishPhotoMessageComposer implements IMessageComposer<ConstructorParameters<typeof PublishPhotoMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof PublishPhotoMessageComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class PurchasePhotoMessageComposer implements IMessageComposer<ConstructorParameters<typeof PurchasePhotoMessageComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof PurchasePhotoMessageComposer>;
|
||||
|
||||
constructor(photoId: string)
|
||||
{
|
||||
this._data = [photoId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
import { RenderTexture } from 'pixi.js';
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
import { PNGEncoder } from '../../../../utils/PNGEncoder';
|
||||
|
||||
export class RenderRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof RenderRoomMessageComposer>>
|
||||
{
|
||||
private _data: any;
|
||||
|
||||
constructor(k:any, _arg_2: string, _arg_3: string, _arg_4: number, _arg_5: number)
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public assignBitmap(texture: RenderTexture):void
|
||||
{
|
||||
const bitmapEncoded = PNGEncoder.encode(texture);
|
||||
this._data = [ bitmapEncoded ];
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
import { RenderRoomMessageComposer } from './RenderRoomMessageComposer';
|
||||
|
||||
export class RenderRoomThumbnailMessageComposer extends RenderRoomMessageComposer
|
||||
{
|
||||
constructor(k:any, _arg_2:string, _arg_3:string, _arg_4:number, _arg_5:number)
|
||||
{
|
||||
super(k, _arg_2, _arg_3, _arg_4, _arg_5);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||
|
||||
export class RequestCameraConfigurationComposer implements IMessageComposer<ConstructorParameters<typeof RequestCameraConfigurationComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof RequestCameraConfigurationComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
export * from './PhotoCompetitionMessageComposer';
|
||||
export * from './PublishPhotoMessageComposer';
|
||||
export * from './PurchasePhotoMessageComposer';
|
||||
export * from './RenderRoomMessageComposer';
|
||||
export * from './RenderRoomThumbnailMessageComposer';
|
||||
export * from './RequestCameraConfigurationComposer';
|
@ -1,4 +1,5 @@
|
||||
export * from './achievements';
|
||||
export * from './camera';
|
||||
export * from './catalog';
|
||||
export * from './client';
|
||||
export * from './desktop';
|
||||
|
Loading…
Reference in New Issue
Block a user