osrs-tools
Version:
A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information
30 lines (29 loc) • 869 B
JavaScript
// A Class that represents an assignment of a task to a player.
// An assignment is a specific instance of a task, with a specific quantity and requirements.
// The assignment is the actual task given to a player, which is based on the Task.
export class Assignment {
name;
quantity;
requirements;
extendedAmountMin;
extendedAmountMax;
constructor(name, quantity, requirements, extendedAmountMin, extendedAmountMax) {
this.name = name;
this.quantity = quantity;
this.requirements = requirements;
this.extendedAmountMin = extendedAmountMin ?? null;
this.extendedAmountMax = extendedAmountMax ?? null;
}
/**
* Get the task name
*/
getName() {
return this.name;
}
/**
* Get the quantity of the task
*/
getQuantity() {
return this.quantity;
}
}