horse: generate json

This commit is contained in:
2026-03-08 14:01:43 -04:00
parent 5540bb2c4e
commit 7ff271ff2d
28 changed files with 172829 additions and 60 deletions

View File

@@ -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