You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-21 07:56:19 +00:00
feat(communication): housekeeping economy — 4 composers
OutgoingHeader 9117-9120: give-credits, give-currency (generic across duckets/diamonds/seasonal via a currencyType int), grant-item, set-hc-subscription. All four ride the existing HousekeepingActionResultEvent — no new parser needed. `yarn compile:fast` clean.
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class HousekeepingGrantItemComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingGrantItemComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof HousekeepingGrantItemComposer>;
|
||||
|
||||
constructor(userId: number, itemId: number, quantity: number) { this._data = [userId, itemId, quantity]; }
|
||||
|
||||
public getMessageArray() { return this._data; }
|
||||
public dispose(): void { return; }
|
||||
}
|
||||
Reference in New Issue
Block a user