Constructors
constructor
- new Voucher(voucherType, description, conditionFunc?): Voucher
Parameters
- voucherType: VoucherType
- description: string
Optional
conditionFunc: ((scene: default, args: any[]) => boolean)- (scene, args): boolean
Returns boolean
Properties
description
description: string
Methods
getIconImage
- getIconImage(): string
Returns string
getName
- getName(playerGender): string
Returns string
the name of the voucher
validate
- validate(scene, args): boolean
Returns boolean
Get the name of the voucher