913 lines
34 KiB
Go
913 lines
34 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"`
|
|
CraftRequest *CraftRequest `json:"craftRequest,omitempty"`
|
|
CraftResult *CraftResult `json:"craftResult,omitempty"`
|
|
HouseRequest *HouseRequest `json:"houseRequest,omitempty"`
|
|
HouseState *HouseState `json:"houseState,omitempty"`
|
|
Intent Intent `json:"intent"`
|
|
Snapshot Snapshot `json:"snapshot"`
|
|
}
|
|
|
|
type ContentCatalog struct {
|
|
Building *BuildingContent `json:"building,omitempty"`
|
|
Combat *CombatContent `json:"combat,omitempty"`
|
|
Crafting *CraftingContent `json:"crafting,omitempty"`
|
|
EffectSets []EffectSet `json:"effectSets,omitempty"`
|
|
Gathering *GatheringContent `json:"gathering,omitempty"`
|
|
HousingVersion *int64 `json:"housingVersion,omitempty"`
|
|
Items []ItemDefinition `json:"items"`
|
|
Powers *PowerContent `json:"powers,omitempty"`
|
|
RequirementSets []RequirementSet `json:"requirementSets,omitempty"`
|
|
Stats ContentStatsRules `json:"stats"`
|
|
Titles []TitleDefinition `json:"titles"`
|
|
Version int64 `json:"version"`
|
|
}
|
|
|
|
type BuildingContent struct {
|
|
Definitions []BuildingDefinition `json:"definitions"`
|
|
MaxSlope float64 `json:"maxSlope"`
|
|
MaxStructures int64 `json:"maxStructures"`
|
|
ProtectedRadius float64 `json:"protectedRadius"`
|
|
Range float64 `json:"range"`
|
|
}
|
|
|
|
type BuildingDefinition struct {
|
|
Depth float64 `json:"depth"`
|
|
Description string `json:"description"`
|
|
HP float64 `json:"hp"`
|
|
Height float64 `json:"height"`
|
|
ID string `json:"id"`
|
|
Level int64 `json:"level"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
Profession string `json:"profession"`
|
|
Width float64 `json:"width"`
|
|
}
|
|
|
|
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 CraftingContent struct {
|
|
Materials []CraftMaterial `json:"materials"`
|
|
Professions []GatheringSkill `json:"professions"`
|
|
Recipes []CraftRecipe `json:"recipes"`
|
|
Rules CraftRules `json:"rules"`
|
|
}
|
|
|
|
type CraftMaterial struct {
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
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 CraftRecipe struct {
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Inputs map[string]int64 `json:"inputs"`
|
|
Level int64 `json:"level"`
|
|
Name string `json:"name"`
|
|
Outputs map[string]int64 `json:"outputs"`
|
|
Profession string `json:"profession"`
|
|
Revision int64 `json:"revision"`
|
|
Stats map[string]float64 `json:"stats"`
|
|
Titles []string `json:"titles"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type CraftRules struct {
|
|
BaseFailure float64 `json:"baseFailure"`
|
|
BaseLoss float64 `json:"baseLoss"`
|
|
Cooldown float64 `json:"cooldown"`
|
|
LossDecay float64 `json:"lossDecay"`
|
|
MaxFailure float64 `json:"maxFailure"`
|
|
MaxQualityBias float64 `json:"maxQualityBias"`
|
|
MinFailure float64 `json:"minFailure"`
|
|
MinLoss float64 `json:"minLoss"`
|
|
OverLevelDecay float64 `json:"overLevelDecay"`
|
|
QualityPerLevel float64 `json:"qualityPerLevel"`
|
|
UnderLevelGrowth float64 `json:"underLevelGrowth"`
|
|
}
|
|
|
|
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 ItemDefinition struct {
|
|
AttackID *string `json:"attackId,omitempty"`
|
|
CraftPool []CraftStat `json:"craftPool,omitempty"`
|
|
CraftRolls *int64 `json:"craftRolls,omitempty"`
|
|
Description string `json:"description"`
|
|
DropChance float64 `json:"dropChance"`
|
|
Furniture *FurnitureProfile `json:"furniture,omitempty"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
WeaponType *string `json:"weaponType,omitempty"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type CraftStat struct {
|
|
Max float64 `json:"max"`
|
|
Min float64 `json:"min"`
|
|
Percent bool `json:"percent"`
|
|
Stat string `json:"stat"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type FurnitureProfile struct {
|
|
Container bool `json:"container"`
|
|
Depth float64 `json:"depth"`
|
|
Width float64 `json:"width"`
|
|
}
|
|
|
|
type ItemRequirements struct {
|
|
Level int64 `json:"level"`
|
|
Stats map[string]float64 `json:"stats"`
|
|
Titles []string `json:"titles"`
|
|
}
|
|
|
|
type PowerContent struct {
|
|
Powers []PowerDefinition `json:"powers"`
|
|
RevivalHealth float64 `json:"revivalHealth"`
|
|
RevivalRange float64 `json:"revivalRange"`
|
|
SpellXP int64 `json:"spellXp"`
|
|
WeaponXP int64 `json:"weaponXp"`
|
|
Weapons []GatheringSkill `json:"weapons"`
|
|
}
|
|
|
|
type PowerDefinition struct {
|
|
AttackID string `json:"attackId"`
|
|
BasePower float64 `json:"basePower"`
|
|
BaseXP int64 `json:"baseXp"`
|
|
Book bool `json:"book"`
|
|
CastSeconds float64 `json:"castSeconds"`
|
|
Cooldown float64 `json:"cooldown"`
|
|
Description string `json:"description"`
|
|
ID string `json:"id"`
|
|
Kind string `json:"kind"`
|
|
Mana float64 `json:"mana"`
|
|
MaxLevel int64 `json:"maxLevel"`
|
|
Name string `json:"name"`
|
|
Parents map[string]int64 `json:"parents"`
|
|
RankScaling float64 `json:"rankScaling"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Resurrection bool `json:"resurrection"`
|
|
Targeting string `json:"targeting"`
|
|
Weapon string `json:"weapon"`
|
|
WeaponLevel int64 `json:"weaponLevel"`
|
|
XPPerLevel int64 `json:"xpPerLevel"`
|
|
}
|
|
|
|
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"`
|
|
Building *BuildingDraft `json:"building,omitempty"`
|
|
Consumable *GatheringConsumableDraft `json:"consumable,omitempty"`
|
|
CraftMaterial *CraftMaterialDraft `json:"craftMaterial,omitempty"`
|
|
CraftProfession *GatheringSkillDraft `json:"craftProfession,omitempty"`
|
|
CraftRecipe *CraftRecipeDraft `json:"craftRecipe,omitempty"`
|
|
CraftRules *CraftRules `json:"craftRules,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"`
|
|
Power *PowerDraft `json:"power,omitempty"`
|
|
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"`
|
|
Weapon *GatheringSkillDraft `json:"weapon,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 BuildingDraft struct {
|
|
Depth float64 `json:"depth"`
|
|
Description string `json:"description"`
|
|
HP float64 `json:"hp"`
|
|
Height float64 `json:"height"`
|
|
ID *string `json:"id,omitempty"`
|
|
Level int64 `json:"level"`
|
|
Model string `json:"model"`
|
|
Name string `json:"name"`
|
|
Profession string `json:"profession"`
|
|
Width float64 `json:"width"`
|
|
}
|
|
|
|
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 CraftMaterialDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
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 CraftRecipeDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Inputs map[string]int64 `json:"inputs"`
|
|
Level int64 `json:"level"`
|
|
Name string `json:"name"`
|
|
Outputs map[string]int64 `json:"outputs"`
|
|
Profession string `json:"profession"`
|
|
Revision *int64 `json:"revision,omitempty"`
|
|
Stats map[string]float64 `json:"stats"`
|
|
Titles []string `json:"titles"`
|
|
XP int64 `json:"xp"`
|
|
}
|
|
|
|
type EffectSetDraft struct {
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ItemDraft struct {
|
|
AttackID *string `json:"attackId,omitempty"`
|
|
CraftPool []CraftStat `json:"craftPool,omitempty"`
|
|
CraftRolls *int64 `json:"craftRolls,omitempty"`
|
|
Description string `json:"description"`
|
|
DropChance float64 `json:"dropChance"`
|
|
Furniture *FurnitureProfile `json:"furniture,omitempty"`
|
|
ID *string `json:"id,omitempty"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
WeaponType *string `json:"weaponType,omitempty"`
|
|
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 PowerDraft struct {
|
|
AttackID string `json:"attackId"`
|
|
BasePower float64 `json:"basePower"`
|
|
BaseXP int64 `json:"baseXp"`
|
|
Book bool `json:"book"`
|
|
CastSeconds float64 `json:"castSeconds"`
|
|
Cooldown float64 `json:"cooldown"`
|
|
Description string `json:"description"`
|
|
ID *string `json:"id,omitempty"`
|
|
Kind string `json:"kind"`
|
|
Mana float64 `json:"mana"`
|
|
MaxLevel int64 `json:"maxLevel"`
|
|
Name string `json:"name"`
|
|
Parents map[string]int64 `json:"parents"`
|
|
RankScaling float64 `json:"rankScaling"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Resurrection bool `json:"resurrection"`
|
|
Targeting string `json:"targeting"`
|
|
Weapon string `json:"weapon"`
|
|
WeaponLevel int64 `json:"weaponLevel"`
|
|
XPPerLevel int64 `json:"xpPerLevel"`
|
|
}
|
|
|
|
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 CraftRequest struct {
|
|
CharacterID string `json:"characterId"`
|
|
ID string `json:"id"`
|
|
Ingredients map[string]int64 `json:"ingredients"`
|
|
Profession string `json:"profession"`
|
|
}
|
|
|
|
type CraftResult struct {
|
|
Consumed map[string]int64 `json:"consumed"`
|
|
Created []string `json:"created"`
|
|
ID string `json:"id"`
|
|
Message string `json:"message"`
|
|
Recipe *KnownRecipe `json:"recipe,omitempty"`
|
|
Success bool `json:"success"`
|
|
Valid bool `json:"valid"`
|
|
}
|
|
|
|
type KnownRecipe struct {
|
|
DiscoveredAt float64 `json:"discoveredAt"`
|
|
Recipe CraftRecipe `json:"recipe"`
|
|
}
|
|
|
|
type HouseRequest struct {
|
|
HouseID *string `json:"houseId,omitempty"`
|
|
Item *string `json:"item,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Op string `json:"op"`
|
|
Permissions map[string]bool `json:"permissions,omitempty"`
|
|
Quantity *int64 `json:"quantity,omitempty"`
|
|
RequestID string `json:"requestId"`
|
|
Revision *int64 `json:"revision,omitempty"`
|
|
Role *string `json:"role,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
X *float64 `json:"x,omitempty"`
|
|
Z *float64 `json:"z,omitempty"`
|
|
}
|
|
|
|
type HouseState struct {
|
|
Effective map[string]bool `json:"effective"`
|
|
Houses []HouseSummary `json:"houses"`
|
|
People []Entity `json:"people"`
|
|
Role string `json:"role"`
|
|
Room *House `json:"room,omitempty"`
|
|
}
|
|
|
|
type HouseSummary struct {
|
|
Creator bool `json:"creator"`
|
|
ID string `json:"id"`
|
|
Keys int64 `json:"keys"`
|
|
Name string `json:"name"`
|
|
RecoveryWorld string `json:"recoveryWorld"`
|
|
Role string `json:"role"`
|
|
State string `json:"state"`
|
|
}
|
|
|
|
type Entity struct {
|
|
Depth *float64 `json:"depth,omitempty"`
|
|
HP float64 `json:"hp"`
|
|
Height *float64 `json:"height,omitempty"`
|
|
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"`
|
|
Width *float64 `json:"width,omitempty"`
|
|
}
|
|
|
|
type Vec3 struct {
|
|
X float64 `json:"x"`
|
|
Y float64 `json:"y"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
type House struct {
|
|
Floor HouseInventory `json:"floor"`
|
|
Furniture map[string]HouseFurniture `json:"furniture"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Overrides map[string]map[string]bool `json:"overrides"`
|
|
Permissions map[string]bool `json:"permissions"`
|
|
Revision int64 `json:"revision"`
|
|
Roles map[string]string `json:"roles"`
|
|
Size float64 `json:"size"`
|
|
State string `json:"state"`
|
|
}
|
|
|
|
type HouseInventory struct {
|
|
CraftedStacks []CraftedStack `json:"craftedStacks"`
|
|
Inventory map[string]int64 `json:"inventory"`
|
|
Items []ItemInstance `json:"items"`
|
|
StackNames map[string]string `json:"stackNames"`
|
|
}
|
|
|
|
type CraftedStack struct {
|
|
ID string `json:"id"`
|
|
Item string `json:"item"`
|
|
Provenance CraftProvenance `json:"provenance"`
|
|
Quantity int64 `json:"quantity"`
|
|
}
|
|
|
|
type CraftProvenance struct {
|
|
At float64 `json:"at"`
|
|
CharacterID string `json:"characterId"`
|
|
CrafterName string `json:"crafterName"`
|
|
Level int64 `json:"level"`
|
|
Profession string `json:"profession"`
|
|
RecipeID string `json:"recipeId"`
|
|
RecipeRevision int64 `json:"recipeRevision"`
|
|
WorldID string `json:"worldId"`
|
|
}
|
|
|
|
type ItemInstance struct {
|
|
Attack *CombatAttack `json:"attack,omitempty"`
|
|
DefinitionID string `json:"definitionId"`
|
|
Description string `json:"description"`
|
|
Equippable bool `json:"equippable"`
|
|
Furniture *FurnitureProfile `json:"furniture,omitempty"`
|
|
HouseID *string `json:"houseId,omitempty"`
|
|
ID string `json:"id"`
|
|
Modifiers []StatModifier `json:"modifiers"`
|
|
Name string `json:"name"`
|
|
Provenance *CraftProvenance `json:"provenance,omitempty"`
|
|
RequirementMessage string `json:"requirementMessage"`
|
|
Requirements ItemRequirements `json:"requirements"`
|
|
Slot string `json:"slot"`
|
|
WeaponType *string `json:"weaponType,omitempty"`
|
|
Weight float64 `json:"weight"`
|
|
}
|
|
|
|
type HouseFurniture struct {
|
|
Contents HouseInventory `json:"contents"`
|
|
Item ItemInstance `json:"item"`
|
|
X float64 `json:"x"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
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"`
|
|
House *HouseScene `json:"house,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 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 HouseScene struct {
|
|
Furniture []RoomFurniture `json:"furniture"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
People []Entity `json:"people"`
|
|
Size float64 `json:"size"`
|
|
}
|
|
|
|
type RoomFurniture struct {
|
|
Container bool `json:"container"`
|
|
Depth float64 `json:"depth"`
|
|
Height float64 `json:"height"`
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Width float64 `json:"width"`
|
|
X float64 `json:"x"`
|
|
Z float64 `json:"z"`
|
|
}
|
|
|
|
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"`
|
|
Casting *string `json:"casting,omitempty"`
|
|
Consumables []GatheringConsumable `json:"consumables,omitempty"`
|
|
CraftedStacks []CraftedStack `json:"craftedStacks,omitempty"`
|
|
Crafting map[string]CraftProgress `json:"crafting,omitempty"`
|
|
DestroyKey *KeyDestruction `json:"destroyKey,omitempty"`
|
|
DiscoveredRecipes map[string]KnownRecipe `json:"discoveredRecipes,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"`
|
|
HouseID *string `json:"houseId,omitempty"`
|
|
HousePosition *Vec3 `json:"housePosition,omitempty"`
|
|
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"`
|
|
Powers map[string]LearnedPower `json:"powers,omitempty"`
|
|
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"`
|
|
Weapons map[string]WeaponProgress `json:"weapons,omitempty"`
|
|
}
|
|
|
|
type CraftProgress struct {
|
|
ID string `json:"id"`
|
|
Level int64 `json:"level"`
|
|
LossPercent float64 `json:"lossPercent"`
|
|
Name string `json:"name"`
|
|
XP int64 `json:"xp"`
|
|
XPToNextLevel int64 `json:"xpToNextLevel"`
|
|
}
|
|
|
|
type KeyDestruction struct {
|
|
FinishesAt float64 `json:"finishesAt"`
|
|
KeyID string `json:"keyId"`
|
|
}
|
|
|
|
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 LearnedPower struct {
|
|
Attack CombatAttack `json:"attack"`
|
|
Definition PowerDefinition `json:"definition"`
|
|
Level int64 `json:"level"`
|
|
ReadyAt float64 `json:"readyAt"`
|
|
XP int64 `json:"xp"`
|
|
XPToNextLevel int64 `json:"xpToNextLevel"`
|
|
}
|
|
|
|
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 WeaponProgress struct {
|
|
ID string `json:"id"`
|
|
Level int64 `json:"level"`
|
|
Name string `json:"name"`
|
|
XP int64 `json:"xp"`
|
|
XPToNextLevel int64 `json:"xpToNextLevel"`
|
|
}
|
|
|
|
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"`
|
|
Kind *string `json:"kind,omitempty"`
|
|
Online int64 `json:"online"`
|
|
Phase string `json:"phase"`
|
|
Radius float64 `json:"radius"`
|
|
SafeRadius float64 `json:"safeRadius"`
|
|
Seed int64 `json:"seed"`
|
|
}
|