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:
simoleo89
2026-05-24 11:30:53 +02:00
committed by simoleo89
parent 597cd2402f
commit 386bf79ddc
7 changed files with 57 additions and 1 deletions
@@ -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; }
}