mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Fix PerkData
This commit is contained in:
parent
74f000a466
commit
2c4fac898b
@ -22,8 +22,8 @@ export class PerkAllowancesMessageParser implements IMessageParser
|
|||||||
|
|
||||||
for(let i = 0; i < size; i++) this._perks.push(new PerkData(
|
for(let i = 0; i < size; i++) this._perks.push(new PerkData(
|
||||||
wrapper.readString(),
|
wrapper.readString(),
|
||||||
wrapper.readBoolean(),
|
wrapper.readString(),
|
||||||
wrapper.readString()
|
wrapper.readBoolean()
|
||||||
));
|
));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
export class PerkData
|
export class PerkData
|
||||||
{
|
{
|
||||||
private _code: string;
|
private _code: string;
|
||||||
private _isAllowed: boolean;
|
|
||||||
private _errorMessage: string;
|
private _errorMessage: string;
|
||||||
|
private _isAllowed: boolean;
|
||||||
|
|
||||||
constructor(code: string, isAllowed: boolean, errorMessage: string)
|
constructor(code: string, errorMessage: string, isAllowed: boolean)
|
||||||
{
|
{
|
||||||
this._code = code;
|
this._code = code;
|
||||||
this._isAllowed = isAllowed;
|
|
||||||
this._errorMessage = errorMessage;
|
this._errorMessage = errorMessage;
|
||||||
|
this._isAllowed = isAllowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get code(): string
|
public get code(): string
|
||||||
@ -16,13 +16,13 @@ export class PerkData
|
|||||||
return this._code;
|
return this._code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isAllowed(): boolean
|
|
||||||
{
|
|
||||||
return this._isAllowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get errorMessage(): string
|
public get errorMessage(): string
|
||||||
{
|
{
|
||||||
return this._errorMessage;
|
return this._errorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get isAllowed(): boolean
|
||||||
|
{
|
||||||
|
return this._isAllowed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user