set serial name for MinedProduct and MinedProduct.Type

This commit is contained in:
Adam 2022-06-27 22:59:52 +02:00
parent 1d0b2b8eaa
commit 23a2ecb0d4
2 changed files with 4 additions and 2 deletions

View file

@ -248,12 +248,12 @@ export type List = any;
export type PrototypeKey = Int;
export interface MinedProduct {
type: Type;
type: MinedProductType;
name: PrototypeName;
amount: Double | null;
}
export enum Type {
export enum MinedProductType {
item = "item",
fluid = "fluid",
}

View file

@ -5,6 +5,7 @@ import kotlinx.serialization.Serializable
@Serializable
@SerialName("kafkatorio.resource.MinedProduct")
data class MinedProduct(
/** `item` or `fluid`. */
val type: Type,
@ -30,6 +31,7 @@ data class MinedProduct(
) {
@Serializable
@SerialName("kafkatorio.resource.MinedProductType")
enum class Type {
@SerialName("item")
ITEM,