You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 23:46:19 +00:00
feat(earnings): add Earnings Center packets (9308-9310 / 9407-9408)
Client-side counterpart to the emulator earnings contract (emulatore/docs/earnings-packet-contract.md). Outgoing: RequestEarningsCenter / ClaimEarningsReward(categoryKey) / ClaimAllEarningsRewards. Incoming: EarningsCenter + EarningsClaimResult sharing one entry/reward shape. Registered in NitroMessages + barrel chain (incoming/outgoing/parser).
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '@nitrots/api';
|
||||
import { MessageEvent } from '@nitrots/events';
|
||||
import { EarningsCenterParser } from '../../parser';
|
||||
|
||||
export class EarningsCenterEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, EarningsCenterParser);
|
||||
}
|
||||
|
||||
public getParser(): EarningsCenterParser
|
||||
{
|
||||
return this.parser as EarningsCenterParser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '@nitrots/api';
|
||||
import { MessageEvent } from '@nitrots/events';
|
||||
import { EarningsClaimResultParser } from '../../parser';
|
||||
|
||||
export class EarningsClaimResultEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, EarningsClaimResultParser);
|
||||
}
|
||||
|
||||
public getParser(): EarningsClaimResultParser
|
||||
{
|
||||
return this.parser as EarningsClaimResultParser;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './EarningsCenterEvent';
|
||||
export * from './EarningsClaimResultEvent';
|
||||
Reference in New Issue
Block a user