You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
feat: add catalog admin composers for page images and icon
- CatalogAdminSavePageImagesComposer (header 10060): pageId, headerImage, teaserImage - CatalogAdminSavePageIconComposer (header 10061): pageId, iconId - Registered in OutgoingHeader, catalog index, and NitroMessages - Server handler required in Arcturus to process these packets
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -493,6 +493,8 @@ export class OutgoingHeader
|
|||||||
public static CATALOG_ADMIN_MOVE_OFFER = 10056;
|
public static CATALOG_ADMIN_MOVE_OFFER = 10056;
|
||||||
public static CATALOG_ADMIN_MOVE_PAGE = 10057;
|
public static CATALOG_ADMIN_MOVE_PAGE = 10057;
|
||||||
public static CATALOG_ADMIN_PUBLISH = 10058;
|
public static CATALOG_ADMIN_PUBLISH = 10058;
|
||||||
|
public static CATALOG_ADMIN_SAVE_PAGE_IMAGES = 10060;
|
||||||
|
public static CATALOG_ADMIN_SAVE_PAGE_ICON = 10061;
|
||||||
|
|
||||||
public static DELETE_ITEM = 10018;
|
public static DELETE_ITEM = 10018;
|
||||||
public static DELETE_PET = 10030;
|
public static DELETE_PET = 10030;
|
||||||
|
|||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '@nitrots/api';
|
||||||
|
|
||||||
|
export class CatalogAdminSavePageIconComposer implements IMessageComposer<ConstructorParameters<typeof CatalogAdminSavePageIconComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof CatalogAdminSavePageIconComposer>;
|
||||||
|
|
||||||
|
constructor(pageId: number, iconId: number)
|
||||||
|
{
|
||||||
|
this._data = [ pageId, iconId ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '@nitrots/api';
|
||||||
|
|
||||||
|
export class CatalogAdminSavePageImagesComposer implements IMessageComposer<ConstructorParameters<typeof CatalogAdminSavePageImagesComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof CatalogAdminSavePageImagesComposer>;
|
||||||
|
|
||||||
|
constructor(pageId: number, headerImage: string, teaserImage: string)
|
||||||
|
{
|
||||||
|
this._data = [ pageId, headerImage, teaserImage ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,6 +8,8 @@ export * from './CatalogAdminMovePageComposer';
|
|||||||
export * from './CatalogAdminPublishComposer';
|
export * from './CatalogAdminPublishComposer';
|
||||||
export * from './CatalogAdminSaveOfferComposer';
|
export * from './CatalogAdminSaveOfferComposer';
|
||||||
export * from './CatalogAdminSavePageComposer';
|
export * from './CatalogAdminSavePageComposer';
|
||||||
|
export * from './CatalogAdminSavePageImagesComposer';
|
||||||
|
export * from './CatalogAdminSavePageIconComposer';
|
||||||
export * from './BuildersClubPlaceWallItemMessageComposer';
|
export * from './BuildersClubPlaceWallItemMessageComposer';
|
||||||
export * from './BuildersClubQueryFurniCountMessageComposer';
|
export * from './BuildersClubQueryFurniCountMessageComposer';
|
||||||
export * from './CatalogAdminCreateOfferComposer';
|
export * from './CatalogAdminCreateOfferComposer';
|
||||||
|
|||||||
Reference in New Issue
Block a user