Skip to content

Commit f4e7949

Browse files
committed
feat: Add CodeXPChallenge data model for CodeXP challenges
1 parent 4e3ee5d commit f4e7949

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.github.ilovegamecoding.intellijcodexp.model
2+
3+
data class CodeXPChallenge(
4+
val id: String,
5+
val name: String,
6+
val category: Type,
7+
val description: String,
8+
val xp: Long,
9+
val goal: Long,
10+
var isCompleted: Boolean,
11+
val onCompletion: () -> Unit
12+
) {
13+
enum class Type {
14+
XP,
15+
ACTION
16+
}
17+
}

0 commit comments

Comments
 (0)