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 interface MinedProduct {
|
||||
type: Type;
|
||||
type: MinedProductType;
|
||||
name: PrototypeName;
|
||||
amount: Double | null;
|
||||
}
|
||||
|
||||
export enum Type {
|
||||
export enum MinedProductType {
|
||||
item = "item",
|
||||
fluid = "fluid",
|
||||
}
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue