set serial name for MinedProduct and MinedProduct.Type
This commit is contained in:
parent
1d0b2b8eaa
commit
23a2ecb0d4
2 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue