You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
feat(furnieditor): outgoing composers for furnidata update (10046) + revert (10048)
This commit is contained in:
@@ -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;
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorRevertFurnidataComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorRevertFurnidataComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorRevertFurnidataComposer>;
|
||||
|
||||
constructor(itemId: number)
|
||||
{
|
||||
this._data = [ itemId ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorUpdateFurnidataComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorUpdateFurnidataComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorUpdateFurnidataComposer>;
|
||||
|
||||
constructor(itemId: number, jsonFields: string)
|
||||
{
|
||||
this._data = [ itemId, jsonFields ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user