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 type PrototypeKey = Int;
export interface MinedProduct { export interface MinedProduct {
type: Type; type: MinedProductType;
name: PrototypeName; name: PrototypeName;
amount: Double | null; amount: Double | null;
} }
export enum Type { export enum MinedProductType {
item = "item", item = "item",
fluid = "fluid", fluid = "fluid",
} }

View file

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