diff --git a/packages/communication/src/messages/outgoing/OutgoingHeader.ts b/packages/communication/src/messages/outgoing/OutgoingHeader.ts index 2537a11..95f6eed 100644 --- a/packages/communication/src/messages/outgoing/OutgoingHeader.ts +++ b/packages/communication/src/messages/outgoing/OutgoingHeader.ts @@ -503,6 +503,8 @@ export class OutgoingHeader public static FURNI_EDITOR_INTERACTIONS = 10043; public static FURNI_EDITOR_UPDATE = 10044; public static FURNI_EDITOR_DELETE = 10045; + public static FURNI_EDITOR_UPDATE_FURNIDATA = 10046; + public static FURNI_EDITOR_REVERT_FURNIDATA = 10048; public static CATALOG_ADMIN_SAVE_PAGE = 10050; public static CATALOG_ADMIN_CREATE_PAGE = 10051; diff --git a/packages/communication/src/messages/outgoing/furnieditor/FurniEditorRevertFurnidataComposer.ts b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorRevertFurnidataComposer.ts new file mode 100644 index 0000000..e7696a8 --- /dev/null +++ b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorRevertFurnidataComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '@nitrots/api'; + +export class FurniEditorRevertFurnidataComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(itemId: number) + { + this._data = [ itemId ]; + } + + dispose(): void + { + this._data = null; + } + + public getMessageArray() + { + return this._data; + } +} diff --git a/packages/communication/src/messages/outgoing/furnieditor/FurniEditorUpdateFurnidataComposer.ts b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorUpdateFurnidataComposer.ts new file mode 100644 index 0000000..69b3ae9 --- /dev/null +++ b/packages/communication/src/messages/outgoing/furnieditor/FurniEditorUpdateFurnidataComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '@nitrots/api'; + +export class FurniEditorUpdateFurnidataComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(itemId: number, jsonFields: string) + { + this._data = [ itemId, jsonFields ]; + } + + dispose(): void + { + this._data = null; + } + + public getMessageArray() + { + return this._data; + } +} diff --git a/packages/communication/src/messages/outgoing/furnieditor/index.ts b/packages/communication/src/messages/outgoing/furnieditor/index.ts index 9e29818..bbc25e7 100644 --- a/packages/communication/src/messages/outgoing/furnieditor/index.ts +++ b/packages/communication/src/messages/outgoing/furnieditor/index.ts @@ -2,5 +2,7 @@ export * from './FurniEditorBySpriteComposer'; export * from './FurniEditorDeleteComposer'; export * from './FurniEditorDetailComposer'; export * from './FurniEditorInteractionsComposer'; +export * from './FurniEditorRevertFurnidataComposer'; export * from './FurniEditorSearchComposer'; export * from './FurniEditorUpdateComposer'; +export * from './FurniEditorUpdateFurnidataComposer';