You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
Add total badge count to user profile parser
This commit is contained in:
@@ -20,6 +20,7 @@ export class UserProfileParser implements IMessageParser
|
||||
private _standId: number;
|
||||
private _overlayId: number;
|
||||
private _cardBackgroundId: number;
|
||||
private _totalBadges: number;
|
||||
private _nickIcon: string;
|
||||
private _prefixText: string;
|
||||
private _prefixColor: string;
|
||||
@@ -47,6 +48,7 @@ export class UserProfileParser implements IMessageParser
|
||||
this._standId = 0;
|
||||
this._overlayId = 0;
|
||||
this._cardBackgroundId = 0;
|
||||
this._totalBadges = 0;
|
||||
this._nickIcon = '';
|
||||
this._prefixText = '';
|
||||
this._prefixColor = '';
|
||||
@@ -102,6 +104,11 @@ export class UserProfileParser implements IMessageParser
|
||||
this._prefixEffect = wrapper.readString();
|
||||
this._prefixFont = wrapper.readString();
|
||||
this._displayOrder = wrapper.readString();
|
||||
|
||||
if(wrapper.bytesAvailable)
|
||||
{
|
||||
this._totalBadges = wrapper.readInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -194,6 +201,11 @@ export class UserProfileParser implements IMessageParser
|
||||
return this._cardBackgroundId;
|
||||
}
|
||||
|
||||
public get totalBadges(): number
|
||||
{
|
||||
return this._totalBadges;
|
||||
}
|
||||
|
||||
public get nickIcon(): string
|
||||
{
|
||||
return this._nickIcon;
|
||||
|
||||
Reference in New Issue
Block a user