Add biome revisions readable content and visible projectile outcomes

This commit is contained in:
dingo
2026-09-09 08:27:32 -04:00
parent 4a7979e32f
commit 70d08b0d32
24 changed files with 703 additions and 128 deletions
+64 -42
View File
@@ -29,20 +29,22 @@ type CombatContent struct {
}
type CombatAttack struct {
Cooldown float64 `json:"cooldown"`
Delivery string `json:"delivery"`
Description string `json:"description"`
Duration float64 `json:"duration"`
Effect string `json:"effect"`
ID string `json:"id"`
Interval float64 `json:"interval"`
Multiplier float64 `json:"multiplier"`
Name string `json:"name"`
Radius float64 `json:"radius"`
Range float64 `json:"range"`
Speed float64 `json:"speed"`
Stamina float64 `json:"stamina"`
Stat string `json:"stat"`
Cooldown float64 `json:"cooldown"`
Delivery string `json:"delivery"`
Description string `json:"description"`
DexteritySpeed *float64 `json:"dexteritySpeed,omitempty"`
Duration float64 `json:"duration"`
Effect string `json:"effect"`
ID string `json:"id"`
Interval float64 `json:"interval"`
Multiplier float64 `json:"multiplier"`
Name string `json:"name"`
Radius float64 `json:"radius"`
Range float64 `json:"range"`
Speed float64 `json:"speed"`
Stamina float64 `json:"stamina"`
Stat string `json:"stat"`
StrengthSpeed *float64 `json:"strengthSpeed,omitempty"`
}
type LootTable struct {
@@ -108,18 +110,21 @@ type StatModifier struct {
}
type GatheringContent struct {
Biomes []BiomeDefinition `json:"biomes"`
Consumables []GatheringConsumable `json:"consumables"`
Resources []ResourceDefinition `json:"resources"`
Skills []GatheringSkill `json:"skills"`
BiomeHistory []BiomeDefinition `json:"biomeHistory,omitempty"`
Biomes []BiomeDefinition `json:"biomes"`
Consumables []GatheringConsumable `json:"consumables"`
Resources []ResourceDefinition `json:"resources"`
Skills []GatheringSkill `json:"skills"`
}
type BiomeDefinition struct {
Color string `json:"color"`
Description string `json:"description"`
ID string `json:"id"`
Name string `json:"name"`
Weight int64 `json:"weight"`
Color string `json:"color"`
Description string `json:"description"`
ID string `json:"id"`
Name string `json:"name"`
Resources []string `json:"resources"`
Revision *int64 `json:"revision,omitempty"`
Weight int64 `json:"weight"`
}
type GatheringConsumable struct {
@@ -225,32 +230,37 @@ type ContentChange struct {
Resource *ResourceDefinitionDraft `json:"resource,omitempty"`
Spawn *MobSpawnDraft `json:"spawn,omitempty"`
Stats *ContentStatsRules `json:"stats,omitempty"`
TargetID *string `json:"targetId,omitempty"`
Title *TitleDraft `json:"title,omitempty"`
}
type CombatAttackDraft struct {
Cooldown float64 `json:"cooldown"`
Delivery string `json:"delivery"`
Description string `json:"description"`
Duration float64 `json:"duration"`
Effect string `json:"effect"`
ID *string `json:"id,omitempty"`
Interval float64 `json:"interval"`
Multiplier float64 `json:"multiplier"`
Name string `json:"name"`
Radius float64 `json:"radius"`
Range float64 `json:"range"`
Speed float64 `json:"speed"`
Stamina float64 `json:"stamina"`
Stat string `json:"stat"`
Cooldown float64 `json:"cooldown"`
Delivery string `json:"delivery"`
Description string `json:"description"`
DexteritySpeed *float64 `json:"dexteritySpeed,omitempty"`
Duration float64 `json:"duration"`
Effect string `json:"effect"`
ID *string `json:"id,omitempty"`
Interval float64 `json:"interval"`
Multiplier float64 `json:"multiplier"`
Name string `json:"name"`
Radius float64 `json:"radius"`
Range float64 `json:"range"`
Speed float64 `json:"speed"`
Stamina float64 `json:"stamina"`
Stat string `json:"stat"`
StrengthSpeed *float64 `json:"strengthSpeed,omitempty"`
}
type BiomeDefinitionDraft struct {
Color string `json:"color"`
Description string `json:"description"`
ID *string `json:"id,omitempty"`
Name string `json:"name"`
Weight int64 `json:"weight"`
Color string `json:"color"`
Description string `json:"description"`
ID *string `json:"id,omitempty"`
Name string `json:"name"`
Resources []string `json:"resources"`
Revision *int64 `json:"revision,omitempty"`
Weight int64 `json:"weight"`
}
type GatheringConsumableDraft struct {
@@ -387,6 +397,7 @@ type Snapshot struct {
Entities []Entity `json:"entities"`
GatherRisks map[string]GatheringRisk `json:"gatherRisks,omitempty"`
Message string `json:"message"`
ProjectileVisuals []ProjectileVisual `json:"projectileVisuals,omitempty"`
Self Character `json:"self"`
Tick int64 `json:"tick"`
Type string `json:"type"`
@@ -437,6 +448,17 @@ type GatheringRisk struct {
Seconds float64 `json:"seconds"`
}
type ProjectileVisual struct {
At float64 `json:"at"`
Destination Vec3 `json:"destination"`
ID string `json:"id"`
Outcome string `json:"outcome"`
Phase string `json:"phase"`
Position Vec3 `json:"position"`
ProjectileID string `json:"projectileId"`
Speed float64 `json:"speed"`
}
type Character struct {
ACK int64 `json:"ack"`
AllocatedStats map[string]int64 `json:"allocatedStats"`