Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/nitro/communication/NitroMessages.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export class IncomingHeader
public static USER_INFO = 2725;
public static USER_OUTFITS = 3315;
public static USER_PERKS = 2586;
public static PERK_CITIZENSHIP_VIP_OFFER_PROMO_ENABLED = 2278;
public static USER_PERMISSIONS = 411;
public static USER_PET_ADD = 2101;
public static USER_PET_REMOVE = 3253;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../events';
import { CitizenshipVipOfferPromoEnabledMessageParser } from './../../parser';

export class CitizenshipVipOfferPromoEnabledEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, CitizenshipVipOfferPromoEnabledMessageParser);
}

public getParser(): CitizenshipVipOfferPromoEnabledMessageParser
{
return this.parser as CitizenshipVipOfferPromoEnabledMessageParser;
}
}
1 change: 1 addition & 0 deletions src/nitro/communication/messages/incoming/perk/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './CitizenshipVipOfferPromoEnabledEvent';
export * from './PerkAllowancesMessageEvent';
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';

export class CitizenshipVipOfferPromoEnabledMessageParser implements IMessageParser
{
public flush(): boolean
{
return true;
}

public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;

return true;
}
}
1 change: 1 addition & 0 deletions src/nitro/communication/messages/parser/perk/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './CitizenshipVipOfferPromoEnabledMessageParser';
export * from './common';
export * from './PerkAllowancesMessageParser';