You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
export default interface Stat extends StatEntry {
|
|
description: string
|
|
allowedAmounts?: Record<string, number>
|
|
}
|
|
|
|
export interface StatEntry {
|
|
id: number
|
|
weight: number
|
|
name: string
|
|
}
|
|
|
|
export interface StatProgressEntry extends StatEntry {
|
|
acquired: number
|
|
required: number
|
|
}
|
|
|
|
export interface StatAggregate {
|
|
acquired: number
|
|
required: number
|
|
}
|
|
|
|
const EXAMPLE2: Stat = {
|
|
id: 12,
|
|
name: "Assets",
|
|
description: "The amount of 'assets' produced in the end. This does not contribute towards the weight",
|
|
weight: 0,
|
|
}
|
|
|
|
const EXAMPLE3: Stat = {
|
|
id: 12,
|
|
name: "Hard Surface Practice",
|
|
description: "A value of the asset complexity, indicating how much general modeling practice is involved.",
|
|
weight: 0.5,
|
|
allowedAmounts: {
|
|
"Rote": 1,
|
|
"Novel": 2,
|
|
"Tutorial": 4,
|
|
"Difficult": 7,
|
|
}
|
|
}
|
|
|
|
const EXAMPLE: Stat = {
|
|
id: 12,
|
|
name: "Complexity Points",
|
|
description: "A value of the asset complexity, indicating how much general modeling practice is involved.",
|
|
weight: 1,
|
|
allowedAmounts: {
|
|
"Small": 1,
|
|
"Moderate": 3,
|
|
"Complex": 7,
|
|
}
|
|
}
|