You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
feat(furni-editor): add WebSocket packets for furniture editor
Add composers, parsers, and events for the Furni Editor feature communicating via WebSocket with the Arcturus emulator. Packet handlers: - Search (10040/10041): search furniture by name, ID, or type - Detail (10042/10043): get/receive full furniture details by sprite ID - Update (10044): save furniture property changes - Create (10045): create new furniture items - Delete (10046): delete furniture items - Interactions (10047/10048): list available interaction types - Result (10049): confirmation response for save/delete/create New files: - 7 outgoing composers (Search, Detail, BySprite, Interactions, Update, Create, Delete) - 4 incoming events (Search, Detail, Interactions, Result) - 4 parsers (Search, Detail, Interactions, Result) - Updated IncomingHeader, OutgoingHeader, NitroMessages, and barrel exports
This commit is contained in:
@@ -479,6 +479,26 @@ export class OutgoingHeader
|
||||
public static DELETE_PET = 10030;
|
||||
public static DELETE_BADGE = 10031;
|
||||
|
||||
// Catalog Admin
|
||||
public static CATALOG_ADMIN_SAVE_PAGE = 10050;
|
||||
public static CATALOG_ADMIN_CREATE_PAGE = 10051;
|
||||
public static CATALOG_ADMIN_DELETE_PAGE = 10052;
|
||||
public static CATALOG_ADMIN_SAVE_OFFER = 10053;
|
||||
public static CATALOG_ADMIN_CREATE_OFFER = 10054;
|
||||
public static CATALOG_ADMIN_DELETE_OFFER = 10055;
|
||||
public static CATALOG_ADMIN_MOVE_OFFER = 10056;
|
||||
public static CATALOG_ADMIN_MOVE_PAGE = 10057;
|
||||
public static CATALOG_ADMIN_PUBLISH = 10058;
|
||||
|
||||
// Furni Editor
|
||||
public static FURNI_EDITOR_SEARCH = 10040;
|
||||
public static FURNI_EDITOR_DETAIL = 10041;
|
||||
public static FURNI_EDITOR_BY_SPRITE = 10042;
|
||||
public static FURNI_EDITOR_INTERACTIONS = 10043;
|
||||
public static FURNI_EDITOR_UPDATE = 10044;
|
||||
public static FURNI_EDITOR_CREATE = 10045;
|
||||
public static FURNI_EDITOR_DELETE = 10046;
|
||||
|
||||
// Custom Prefixes
|
||||
public static REQUEST_PREFIXES = 7011;
|
||||
public static SET_ACTIVE_PREFIX = 7012;
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorBySpriteComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorBySpriteComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorBySpriteComposer>;
|
||||
|
||||
constructor(spriteId: number)
|
||||
{
|
||||
this._data = [ spriteId ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorCreateComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorCreateComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorCreateComposer>;
|
||||
|
||||
constructor(fieldsJson: string)
|
||||
{
|
||||
this._data = [ fieldsJson ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorDeleteComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorDeleteComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorDeleteComposer>;
|
||||
|
||||
constructor(id: number)
|
||||
{
|
||||
this._data = [ id ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorDetailComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorDetailComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorDetailComposer>;
|
||||
|
||||
constructor(id: number)
|
||||
{
|
||||
this._data = [ id ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorInteractionsComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorInteractionsComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorInteractionsComposer>;
|
||||
|
||||
constructor()
|
||||
{
|
||||
this._data = [];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorSearchComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorSearchComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorSearchComposer>;
|
||||
|
||||
constructor(query: string, type: string, page: number)
|
||||
{
|
||||
this._data = [ query, type, page ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class FurniEditorUpdateComposer implements IMessageComposer<ConstructorParameters<typeof FurniEditorUpdateComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof FurniEditorUpdateComposer>;
|
||||
|
||||
constructor(id: number, fieldsJson: string)
|
||||
{
|
||||
this._data = [ id, fieldsJson ];
|
||||
}
|
||||
|
||||
dispose(): void
|
||||
{
|
||||
this._data = null;
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export * from './FurniEditorSearchComposer';
|
||||
export * from './FurniEditorDetailComposer';
|
||||
export * from './FurniEditorBySpriteComposer';
|
||||
export * from './FurniEditorInteractionsComposer';
|
||||
export * from './FurniEditorUpdateComposer';
|
||||
export * from './FurniEditorCreateComposer';
|
||||
export * from './FurniEditorDeleteComposer';
|
||||
@@ -8,6 +8,7 @@ export * from './competition';
|
||||
export * from './crafting';
|
||||
export * from './desktop';
|
||||
export * from './friendfurni';
|
||||
export * from './furnieditor';
|
||||
export * from './friendlist';
|
||||
export * from './game';
|
||||
export * from './game/arena';
|
||||
|
||||
Reference in New Issue
Block a user