summaryrefslogtreewikicommitdiff
path: root/core/src/world/Item.kt
blob: d407c1aa032e485cb2426a35100deb69c8a139cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package cat.freya.khs.world

import cat.freya.khs.config.EffectConfig
import cat.freya.khs.config.ItemConfig

interface Item {
    val name: String?
    val material: String
    val config: ItemConfig

    fun clone(): Item

    fun similar(config: ItemConfig): Boolean

    fun similar(material: String): Boolean
}

interface Effect {
    val name: String?
    val config: EffectConfig

    fun clone(): Effect
}