This commit is contained in:
Him188 2020-06-19 13:22:29 +08:00
parent 65d7871916
commit ae20a8d180

View File

@ -3,11 +3,7 @@
package net.mamoe.mirai.console.setting
import kotlinx.serialization.KSerializer
import net.mamoe.mirai.console.setting.internal.cast
import net.mamoe.mirai.console.setting.internal.valueFromKTypeImpl
import net.mamoe.mirai.utils.MiraiExperimentalAPI
import kotlin.internal.LowPriorityInOverloadResolution
import kotlin.reflect.typeOf
/**
* Represents a observable, immutable value wrapping.
@ -31,7 +27,7 @@ typealias ValueSerializer<T> = KSerializer<Value<T>>
/**
* Represents a observable *primitive* value wrapping.
*
* 8 types that are considered *primitive*:
* 9 types that are considered *primitive*:
* - Integers: [Byte], [Short], [Int], [Long]
* - Floating: [Float], [Double]
* - [Boolean]
@ -42,8 +38,6 @@ typealias ValueSerializer<T> = KSerializer<Value<T>>
*/
interface PrimitiveValue<T> : Value<T>
interface MutablePrimitiveValue<T> : Value<T>
//// region PrimitiveValue CODEGEN START ////