558 lines
20 KiB
Go
558 lines
20 KiB
Go
// Code generated from schemas/protocol.json. DO NOT EDIT.
|
|
package protocol
|
|
|
|
type Protocol struct {
|
|
Catalog *ContentCatalog `json:"catalog,omitempty"`
|
|
CatalogChange *ContentChange `json:"catalogChange,omitempty"`
|
|
CatalogPreview *ContentPreview `json:"catalogPreview,omitempty"`
|
|
CatalogResult *ContentResult `json:"catalogResult,omitempty"`
|
|
Intent Intent `json:"intent"`
|
|
Snapshot Snapshot `json:"snapshot"`
|
|
}
|
|
|
|
type ContentCatalog struct {
|
|
Combat *CombatContent `json:"combat,omitempty"`
|
|
EffectSets []EffectSet `json:"effectSets,omitempty"`
|
|
Gathering *GatheringContent `json:"gathering,omitempty"`
|
|
Items []ItemDefinition `json:"items"`
|
|
RequirementSets []RequirementSet `json:"requirementSets,omitempty"`
|
|
Stats ContentStatsRules `json:"stats"`
|
|
Titles []TitleDefinition `json:"titles"`
|
|
Version int64 `json:"version"`
|
|
}
|
|
|
|
type CombatContent struct {
|
|
Attacks []CombatAttack `json:"attacks"`
|
|
Loot []LootTable `json:"loot"`
|
|
Mobs []MobDefinition `json:"mobs"`
|
|
Spawns []MobSpawn `json:"spawns"`
|
|
}
|
|
|
|
type CombatAttack struct {
|
|
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 {
|
|
Description string `json:"description"`
|
|
Entries []LootEntry `json:"entries"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type LootEntry struct {
|
|
Amount int64 `json:"amount"`
|
|
Chance float64 `json:"chance"`
|
|
Group string `json:"group"`
|
|
Item string `json:"item"`
|
|
Weight int64 `json:"weight"`
|
|
}
|
|
|
|
type MobDefinition struct {
|
|
AggroRange float64 `json:"aggroRange"`
|
|
AttackID string `json:"attackId"`
|
|
Behavior string `json:"behavior"`
|
|
Damage float64 `json:"damage"`
|
|
Defence float64 `json:"defence"`
|
|
Description string `json:"description"`
|
|
HP float64 `json:"hp"`
|
|
ID string `json:"id"`
|
|
LeashRange float64 `json:"leashRange"`
|
|
Level int64 `json:"level"`
|
|
LootID string `json:"lootId"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
ScalePerDay float64 `json:"scalePerDay"`
|
|
Speed float64 `json:"speed"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type MobSpawn struct {
|
|
Biomes []string `json:"biomes"`
|
|
Count int64 `json:"count"`
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
MinPlayerDistance float64 `json:"minPlayerDistance"`
|
|
MobID string `json:"mobId"`
|
|
Name string `json:"name"`
|
|
Radius float64 `json:"radius"`
|
|
Respawn float64 `json:"respawn"`
|
|
X float64 `json:"x"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type EffectSet struct {
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type StatModifier struct {
|
|
Flat float64 `json:"flat"`
|
|
Percent float64 `json:"percent"`
|
|
Skill *string `json:"skill,omitempty"`
|
|
Stat string `json:"stat"`
|
|
}
|
|
|
|
type GatheringContent struct {
|
|
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"`
|
|
Resources []string `json:"resources"`
|
|
Revision *int64 `json:"revision,omitempty"`
|
|
Weight int64 `json:"weight"`
|
|
}
|
|
|
|
type GatheringConsumable struct {
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Seconds float64 `json:"seconds"`
|
|
}
|
|
|
|
type ResourceDefinition struct {
|
|
Amount int64 `json:"amount"`
|
|
Biomes []string `json:"biomes"`
|
|
Density int64 `json:"density"`
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
Output string `json:"output"`
|
|
RequiredLevel int64 `json:"requiredLevel"`
|
|
RespawnSeconds float64 `json:"respawnSeconds"`
|
|
Seconds float64 `json:"seconds"`
|
|
SkillID string `json:"skillId"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type GatheringSkill struct {
|
|
BaseXP int64 `json:"baseXp"`
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
MaxLevel int64 `json:"maxLevel"`
|
|
Name string `json:"name"`
|
|
XPPerLevel int64 `json:"xpPerLevel"`
|
|
}
|
|
|
|
type ItemDefinition struct {
|
|
AttackID *string `json:"attackId,omitempty"`
|
|
Description string `json:"description"`
|
|
DropChance float64 `json:"dropChance"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type ItemRequirements struct {
|
|
Level int64 `json:"level"`
|
|
Stats map[string]float64 `json:"stats"`
|
|
Titles []string `json:"titles"`
|
|
}
|
|
|
|
type RequirementSet struct {
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Requirements []ContentRequirement `json:"requirements"`
|
|
}
|
|
|
|
type ContentRequirement struct {
|
|
AtLeast int64 `json:"atLeast"`
|
|
Metric string `json:"metric"`
|
|
}
|
|
|
|
type ContentStatsRules struct {
|
|
Base map[string]float64 `json:"base"`
|
|
Coefficients map[string]map[string]float64 `json:"coefficients"`
|
|
Version int64 `json:"version"`
|
|
}
|
|
|
|
type TitleDefinition struct {
|
|
Description string `json:"description"`
|
|
Effects TitleEffects `json:"effects"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Requirements []ContentRequirement `json:"requirements"`
|
|
Scope string `json:"scope"`
|
|
}
|
|
|
|
type TitleEffects struct {
|
|
Damage float64 `json:"damage"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
MoveSpeed float64 `json:"moveSpeed"`
|
|
}
|
|
|
|
type ContentChange struct {
|
|
Attack *CombatAttackDraft `json:"attack,omitempty"`
|
|
Biome *BiomeDefinitionDraft `json:"biome,omitempty"`
|
|
Consumable *GatheringConsumableDraft `json:"consumable,omitempty"`
|
|
EffectSet *EffectSetDraft `json:"effectSet,omitempty"`
|
|
EffectSetIDS []string `json:"effectSetIds,omitempty"`
|
|
ExpectedVersion int64 `json:"expectedVersion"`
|
|
GatheringSkill *GatheringSkillDraft `json:"gatheringSkill,omitempty"`
|
|
ID string `json:"id"`
|
|
Item *ItemDraft `json:"item,omitempty"`
|
|
Loot *LootTableDraft `json:"loot,omitempty"`
|
|
Mob *MobDefinitionDraft `json:"mob,omitempty"`
|
|
Op string `json:"op"`
|
|
Reason string `json:"reason"`
|
|
RequirementSet *RequirementSetDraft `json:"requirementSet,omitempty"`
|
|
RequirementSetIDS []string `json:"requirementSetIds,omitempty"`
|
|
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"`
|
|
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"`
|
|
Resources []string `json:"resources"`
|
|
Revision *int64 `json:"revision,omitempty"`
|
|
Weight int64 `json:"weight"`
|
|
}
|
|
|
|
type GatheringConsumableDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Seconds float64 `json:"seconds"`
|
|
}
|
|
|
|
type EffectSetDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type GatheringSkillDraft struct {
|
|
BaseXP int64 `json:"baseXp"`
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
MaxLevel int64 `json:"maxLevel"`
|
|
Name string `json:"name"`
|
|
XPPerLevel int64 `json:"xpPerLevel"`
|
|
}
|
|
|
|
type ItemDraft struct {
|
|
AttackID *string `json:"attackId,omitempty"`
|
|
Description string `json:"description"`
|
|
DropChance float64 `json:"dropChance"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type LootTableDraft struct {
|
|
Description string `json:"description"`
|
|
Entries []LootEntry `json:"entries"`
|
|
ID *string `json:"id,omitempty"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type MobDefinitionDraft struct {
|
|
AggroRange float64 `json:"aggroRange"`
|
|
AttackID string `json:"attackId"`
|
|
Behavior string `json:"behavior"`
|
|
Damage float64 `json:"damage"`
|
|
Defence float64 `json:"defence"`
|
|
Description string `json:"description"`
|
|
HP float64 `json:"hp"`
|
|
ID *string `json:"id,omitempty"`
|
|
LeashRange float64 `json:"leashRange"`
|
|
Level int64 `json:"level"`
|
|
LootID string `json:"lootId"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
ScalePerDay float64 `json:"scalePerDay"`
|
|
Speed float64 `json:"speed"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type RequirementSetDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Name string `json:"name"`
|
|
Requirements []ContentRequirement `json:"requirements"`
|
|
}
|
|
|
|
type ResourceDefinitionDraft struct {
|
|
Amount int64 `json:"amount"`
|
|
Biomes []string `json:"biomes"`
|
|
Density int64 `json:"density"`
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
Output string `json:"output"`
|
|
RequiredLevel int64 `json:"requiredLevel"`
|
|
RespawnSeconds float64 `json:"respawnSeconds"`
|
|
Seconds float64 `json:"seconds"`
|
|
SkillID string `json:"skillId"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type MobSpawnDraft struct {
|
|
Biomes []string `json:"biomes"`
|
|
Count int64 `json:"count"`
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
MinPlayerDistance float64 `json:"minPlayerDistance"`
|
|
MobID string `json:"mobId"`
|
|
Name string `json:"name"`
|
|
Radius float64 `json:"radius"`
|
|
Respawn float64 `json:"respawn"`
|
|
X float64 `json:"x"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type TitleDraft struct {
|
|
Description string `json:"description"`
|
|
Effects TitleEffects `json:"effects"`
|
|
ID *string `json:"id,omitempty"`
|
|
Name string `json:"name"`
|
|
Requirements []ContentRequirement `json:"requirements"`
|
|
Scope string `json:"scope"`
|
|
}
|
|
|
|
type ContentPreview struct {
|
|
BasedOnVersion int64 `json:"basedOnVersion"`
|
|
ProposedVersion int64 `json:"proposedVersion"`
|
|
Resolved ContentChange `json:"resolved"`
|
|
}
|
|
|
|
type ContentResult struct {
|
|
ID string `json:"id"`
|
|
Version int64 `json:"version"`
|
|
}
|
|
|
|
type Intent struct {
|
|
Op string `json:"op"`
|
|
Seq int64 `json:"seq"`
|
|
Slot string `json:"slot"`
|
|
Target string `json:"target"`
|
|
X float64 `json:"x"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type Snapshot struct {
|
|
ChunkKeys []string `json:"chunkKeys"`
|
|
Chunks []Chunk `json:"chunks"`
|
|
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"`
|
|
UnavailableResources []string `json:"unavailableResources"`
|
|
Version int64 `json:"version"`
|
|
World WorldInfo `json:"world"`
|
|
}
|
|
|
|
type Chunk struct {
|
|
Biome string `json:"biome"`
|
|
Color *string `json:"color,omitempty"`
|
|
Heights []float64 `json:"heights"`
|
|
Key string `json:"key"`
|
|
Resolution int64 `json:"resolution"`
|
|
Resources []Entity `json:"resources"`
|
|
Size float64 `json:"size"`
|
|
X int64 `json:"x"`
|
|
Z int64 `json:"z"`
|
|
}
|
|
|
|
type Entity struct {
|
|
HP float64 `json:"hp"`
|
|
ID string `json:"id"`
|
|
Kind string `json:"kind"`
|
|
MaxHP float64 `json:"maxHp"`
|
|
Model *string `json:"model,omitempty"`
|
|
Name string `json:"name"`
|
|
Position Vec3 `json:"position"`
|
|
Radius *float64 `json:"radius,omitempty"`
|
|
RequiredLevel *int64 `json:"requiredLevel,omitempty"`
|
|
ResourceID *string `json:"resourceId,omitempty"`
|
|
SkillID *string `json:"skillId,omitempty"`
|
|
State string `json:"state"`
|
|
}
|
|
|
|
type Vec3 struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type GatheringRisk struct {
|
|
Allowed bool `json:"allowed"`
|
|
Damage float64 `json:"damage"`
|
|
Destruction float64 `json:"destruction"`
|
|
Failure float64 `json:"failure"`
|
|
Negative float64 `json:"negative"`
|
|
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"`
|
|
Attack *CombatAttack `json:"attack,omitempty"`
|
|
CarryWeight float64 `json:"carryWeight"`
|
|
Consumables []GatheringConsumable `json:"consumables,omitempty"`
|
|
Entity Entity `json:"entity"`
|
|
Equipment map[string]string `json:"equipment"`
|
|
Experience int64 `json:"experience"`
|
|
ExperienceToNextLevel int64 `json:"experienceToNextLevel"`
|
|
GatherAttempt int64 `json:"gatherAttempt"`
|
|
Gathering map[string]SkillProgress `json:"gathering,omitempty"`
|
|
GatheringEffects []TimedGatheringEffect `json:"gatheringEffects,omitempty"`
|
|
HasKeystone bool `json:"hasKeystone"`
|
|
HealthChoices int64 `json:"healthChoices"`
|
|
Inventory map[string]int64 `json:"inventory"`
|
|
Items []ItemInstance `json:"items"`
|
|
Kills int64 `json:"kills"`
|
|
Level int64 `json:"level"`
|
|
Mana float64 `json:"mana"`
|
|
ManaChoices int64 `json:"manaChoices"`
|
|
PendingVitalChoices int64 `json:"pendingVitalChoices"`
|
|
PlayedSeconds float64 `json:"playedSeconds"`
|
|
RemainingSeconds float64 `json:"remainingSeconds"`
|
|
Skills map[string]int64 `json:"skills"`
|
|
StackNames map[string]string `json:"stackNames,omitempty"`
|
|
Stamina float64 `json:"stamina"`
|
|
StatPoints int64 `json:"statPoints"`
|
|
Stats map[string]StatValue `json:"stats"`
|
|
Titles []TitleAward `json:"titles"`
|
|
}
|
|
|
|
type SkillProgress struct {
|
|
EffectiveLevel int64 `json:"effectiveLevel"`
|
|
Experience StatValue `json:"experience"`
|
|
Level int64 `json:"level"`
|
|
LevelValue StatValue `json:"levelValue"`
|
|
Name string `json:"name"`
|
|
Speed StatValue `json:"speed"`
|
|
XP int64 `json:"xp"`
|
|
XPToNextLevel int64 `json:"xpToNextLevel"`
|
|
Yield StatValue `json:"yield"`
|
|
}
|
|
|
|
type StatValue struct {
|
|
Base float64 `json:"base"`
|
|
Final float64 `json:"final"`
|
|
Flat float64 `json:"flat"`
|
|
Percent float64 `json:"percent"`
|
|
}
|
|
|
|
type TimedGatheringEffect struct {
|
|
ExpiresAt float64 `json:"expiresAt"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Source string `json:"source"`
|
|
}
|
|
|
|
type ItemInstance struct {
|
|
Attack *CombatAttack `json:"attack,omitempty"`
|
|
DefinitionID string `json:"definitionId"`
|
|
Description string `json:"description"`
|
|
Equippable bool `json:"equippable"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
RequirementMessage string `json:"requirementMessage"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type TitleAward struct {
|
|
Description string `json:"description"`
|
|
EarnedAt string `json:"earnedAt"`
|
|
Effects TitleEffects `json:"effects"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Scope string `json:"scope"`
|
|
WorldID string `json:"worldId"`
|
|
}
|
|
|
|
type WorldInfo struct {
|
|
AgeSeconds float64 `json:"ageSeconds"`
|
|
BossHP float64 `json:"bossHp"`
|
|
BossInSeconds float64 `json:"bossInSeconds"`
|
|
BossMaxHP float64 `json:"bossMaxHp"`
|
|
Capacity int64 `json:"capacity"`
|
|
CollapseInSeconds float64 `json:"collapseInSeconds"`
|
|
ID string `json:"id"`
|
|
Online int64 `json:"online"`
|
|
Phase string `json:"phase"`
|
|
Radius float64 `json:"radius"`
|
|
SafeRadius float64 `json:"safeRadius"`
|
|
Seed int64 `json:"seed"`
|
|
}
|