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:
Life
2026-04-10 22:22:36 +02:00
parent af78e9288c
commit 04d172c735
5 changed files with 49 additions and 1 deletions
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;
@@ -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;
}
}
@@ -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';