263 lines
9.3 KiB
Go
263 lines
9.3 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 {
|
|
EffectSets []EffectSet `json:"effectSets,omitempty"`
|
|
Items []ItemDefinition `json:"items"`
|
|
RequirementSets []RequirementSet `json:"requirementSets,omitempty"`
|
|
Stats ContentStatsRules `json:"stats"`
|
|
Titles []TitleDefinition `json:"titles"`
|
|
Version int64 `json:"version"`
|
|
}
|
|
|
|
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"`
|
|
Stat string `json:"stat"`
|
|
}
|
|
|
|
type ItemDefinition struct {
|
|
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 {
|
|
EffectSet *EffectSetDraft `json:"effectSet,omitempty"`
|
|
EffectSetIDS []string `json:"effectSetIds,omitempty"`
|
|
ExpectedVersion int64 `json:"expectedVersion"`
|
|
ID string `json:"id"`
|
|
Item *ItemDraft `json:"item,omitempty"`
|
|
Op string `json:"op"`
|
|
Reason string `json:"reason"`
|
|
RequirementSet *RequirementSetDraft `json:"requirementSet,omitempty"`
|
|
RequirementSetIDS []string `json:"requirementSetIds,omitempty"`
|
|
Stats *ContentStatsRules `json:"stats,omitempty"`
|
|
Title *TitleDraft `json:"title,omitempty"`
|
|
}
|
|
|
|
type EffectSetDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ItemDraft struct {
|
|
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 RequirementSetDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Name string `json:"name"`
|
|
Requirements []ContentRequirement `json:"requirements"`
|
|
}
|
|
|
|
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"`
|
|
Message string `json:"message"`
|
|
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"`
|
|
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"`
|
|
Name string `json:"name"`
|
|
Position Vec3 `json:"position"`
|
|
State string `json:"state"`
|
|
}
|
|
|
|
type Vec3 struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type Character struct {
|
|
ACK int64 `json:"ack"`
|
|
AllocatedStats map[string]int64 `json:"allocatedStats"`
|
|
CarryWeight float64 `json:"carryWeight"`
|
|
Entity Entity `json:"entity"`
|
|
Equipment map[string]string `json:"equipment"`
|
|
Experience int64 `json:"experience"`
|
|
ExperienceToNextLevel int64 `json:"experienceToNextLevel"`
|
|
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"`
|
|
Stamina float64 `json:"stamina"`
|
|
StatPoints int64 `json:"statPoints"`
|
|
Stats map[string]StatValue `json:"stats"`
|
|
Titles []TitleAward `json:"titles"`
|
|
}
|
|
|
|
type ItemInstance struct {
|
|
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 StatValue struct {
|
|
Base float64 `json:"base"`
|
|
Final float64 `json:"final"`
|
|
Flat float64 `json:"flat"`
|
|
Percent float64 `json:"percent"`
|
|
}
|
|
|
|
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"`
|
|
}
|