From 23a2ecb0d446aa92509a8f461e86f7334ab9b758 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:59:52 +0200 Subject: [PATCH] set serial name for MinedProduct and MinedProduct.Type --- .../src/main/typescript/generated/kafkatorio-schema.ts | 4 ++-- .../kotlin/dev/adamko/kafkatorio/schema/common/resources.kt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/events-mod/src/main/typescript/generated/kafkatorio-schema.ts b/modules/events-mod/src/main/typescript/generated/kafkatorio-schema.ts index f0559a9..e01e826 100644 --- a/modules/events-mod/src/main/typescript/generated/kafkatorio-schema.ts +++ b/modules/events-mod/src/main/typescript/generated/kafkatorio-schema.ts @@ -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", } \ No newline at end of file diff --git a/modules/events-schema/src/commonMain/kotlin/dev/adamko/kafkatorio/schema/common/resources.kt b/modules/events-schema/src/commonMain/kotlin/dev/adamko/kafkatorio/schema/common/resources.kt index d637494..d21a750 100644 --- a/modules/events-schema/src/commonMain/kotlin/dev/adamko/kafkatorio/schema/common/resources.kt +++ b/modules/events-schema/src/commonMain/kotlin/dev/adamko/kafkatorio/schema/common/resources.kt @@ -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,