horse: generate json
This commit is contained in:
@@ -6,13 +6,13 @@ type (
|
||||
)
|
||||
|
||||
type Spark struct {
|
||||
ID SparkID
|
||||
Name string
|
||||
Description string
|
||||
Group SparkGroupID
|
||||
Rarity SparkRarity
|
||||
Type SparkType
|
||||
Effects [][]SparkEffect
|
||||
ID SparkID `json:"spark_id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Group SparkGroupID `json:"spark_group"`
|
||||
Rarity SparkRarity `json:"rarity"`
|
||||
Type SparkType `json:"type"`
|
||||
Effects [][]SparkEffect `json:"effects"`
|
||||
}
|
||||
|
||||
type SparkType int8
|
||||
@@ -46,9 +46,9 @@ func (r SparkRarity) String() string {
|
||||
}
|
||||
|
||||
type SparkEffect struct {
|
||||
Target SparkTarget
|
||||
Value1 int32
|
||||
Value2 int32
|
||||
Target SparkTarget `json:"target"`
|
||||
Value1 int32 `json:"value1,omitzero"`
|
||||
Value2 int32 `json:"value2,omitzero"`
|
||||
}
|
||||
|
||||
type SparkTarget int8
|
||||
|
||||
Reference in New Issue
Block a user