Documentation
¶
Index ¶
- Variables
- type AccountIdentifier
- type BaseStat
- type BattleZone
- type Descendant
- type DescendantModule
- type DescendantRec
- type DescendantRecommendation
- type DescendantStats
- type Enchantment
- type Error
- type ErrorMessage
- type ExternalComponent
- type ExternalComponentAdditionalStats
- type ExternalComponentInfo
- type FireArm
- type Module
- type ModuleInfo
- type ModuleRecommendation
- type ModuleStat
- type Reactor
- type ReactorAdditionalStats
- type Recommendation
- type Reward
- type RewardInfo
- type SetOptionDetail
- type Skill
- type SkillPower
- type SkillPowerBoost
- type SkillType
- type StatMeta
- type TitleResponse
- type UserBasic
- type UserDescendant
- type UserExternalComponent
- type UserReactor
- type UserWeapon
- type VoidBattleResponse
- type Weapon
- type WeaponAdditionalStats
- type WeaponInfo
- type WeaponModule
- type WeaponRec
- type WeaponRecommendation
Constants ¶
This section is empty.
Variables ¶
var SkillTypes = struct { Passive SkillType Active SkillType }{"passive", "active"}
Functions ¶
This section is empty.
Types ¶
type AccountIdentifier ¶
type AccountIdentifier struct {
OUID string `json:"ouid"` // OUID
}
type BaseStat ¶
func (*BaseStat) UnmarshalJSON ¶
type BattleZone ¶
type BattleZone struct {
ID string `json:"battle_zone_id"`
Name string `json:"battle_zone_name"`
Rewards []RewardInfo `json:"reward"`
}
BattleZone represents information about a battlefield
type Descendant ¶
type Descendant struct {
ID string `json:"descendant_id"` // Descendant identifier
Name string `json:"descendant_name"` // Descendant name
ImageURL string `json:"descendant_image_url"` // Descendant image path
Stats []DescendantStats `json:"descendant_stat"` // Descendant stat information
Skills []Skill `json:"descendant_skill"` // Descendant skill
}
type DescendantModule ¶
type DescendantModule struct {
ModuleID string `json:"module_id"`
}
DescendantModule represents module recommendation information for a descendant
type DescendantRec ¶
type DescendantRec struct {
DescendantID string `json:"descendant_id"`
Recommendation []Recommendation
}
type DescendantRecommendation ¶
type DescendantRecommendation struct {
DescendantID string `json:"descendant_id"`
Recommendations []DescendantModule `json:"recommendation"`
}
DescendantRecommendation represents descendant recommendation information
type DescendantStats ¶
type Enchantment ¶
type Enchantment struct {
Level int64 `json:"enchant_level"`
StatType string `json:"stat_type"`
Value float64 `json:"value"`
}
Enchantment represents enchantment effect by level information
type ErrorMessage ¶
type ErrorMessage struct {
Details Error `json:"error"`
}
func (*ErrorMessage) Error ¶
func (e *ErrorMessage) Error() string
type ExternalComponent ¶
type ExternalComponent struct {
ID string `json:"external_component_id"` // External component identifier
Name string `json:"external_component_name"` // External component name
ImageURL string `json:"image_url"` // External component image path
EquipmentType string `json:"external_component_equipment_type"` // External component equipment part
Tier string `json:"external_component_tier"` // External component tier
BaseStat []struct {
BaseStat
Level int64 `json:"level"` // External component level
} `json:"base_stat"` // External component effect by level information
SetOptionDetail []SetOptionDetail `json:"set_option_detail"` // External component set option information
}
ExternalComponent represents the information of an external component
type ExternalComponentInfo ¶
type ExternalComponentInfo struct {
SlotID string `json:"external_component_slot_id"` // External component slot identifier
ID string `json:"external_component_id"` // External component identifier (Refer to /meta/external-component API)
Level int64 `json:"external_component_level"` // External component level
AdditionalStats []ExternalComponentAdditionalStats `json:"external_component_additional_stat"` // External component random option information
}
type Module ¶
type Module struct {
Name string `json:"module_name"`
ID string `json:"module_id"`
ImageURL string `json:"image_url"`
Type string `json:"module_type"`
Tier string `json:"module_tier"`
SocketType string `json:"module_socket_type"`
Class string `json:"module_class"`
Stat []ModuleStat `json:"module_stat"`
}
type ModuleInfo ¶
type ModuleRecommendation ¶
type ModuleRecommendation struct {
Descendant DescendantRecommendation `json:"descendant"`
Weapon WeaponRecommendation `json:"weapon"`
}
ModuleRecommendationResponse represents the response object structure
type ModuleStat ¶
type Reactor ¶
type Reactor struct {
ID string `json:"reactor_id"`
Name string `json:"reactor_name"`
ImageURL string `json:"image_url"`
Tier string `json:"reactor_tier"`
SkillPower []SkillPower `json:"reactor_skill_power"`
OptimizedConditionType string `json:"optimized_condition_type"`
}
Reactor represents information about a reactor
type ReactorAdditionalStats ¶
type Recommendation ¶
type Recommendation struct {
ModuleID string `json:"module_id"`
}
type Reward ¶
type Reward struct {
MapID string `json:"map_id"`
MapName string `json:"map_name"`
BattleZones []BattleZone `json:"battle_zone"`
}
Reward represents information about a reward
type RewardInfo ¶
type RewardInfo struct {
Rotation int64 `json:"rotation"`
Type string `json:"reward_type"` // Reward Type
ReactorElementType string `json:"reactor_element_type"`
WeaponRoundsType string `json:"weapon_rounds_type"`
ArcheType string `json:"arche_type"`
}
RewardInfo represents reward rotation information
type SetOptionDetail ¶
type SetOptionDetail struct {
Option string `json:"set_option"` // External component set option type
Count int64 `json:"set_count"` // Number of external component sets
OptionEffect string `json:"set_option_effect"` // External component set option set effect
}
SetOptionDetail represents the set option information for an external component
type SkillPower ¶
type SkillPower struct {
Level int64 `json:"level"`
AtkPower float64 `json:"skill_atk_power"`
SubSkillAtkPower float64 `json:"sub_skill_atk_power"`
PowerCoeff []SkillPowerBoost `json:"skill_power_coefficient"` // Skill Power Coefficient
EnchantEffect []Enchantment `json:"enchant_effect"`
}
SkillPower represents skill power by level information
type SkillPowerBoost ¶
type SkillPowerBoost struct {
CoefficientStatID string `json:"coefficient_stat_id"`
CoefficientStatValue float64 `json:"coefficient_stat_value"`
}
SkillPowerBoost represents skill power boost ratio information
type TitleResponse ¶
type UserBasic ¶
type UserBasic struct {
AccountIdentifier
UserName string `json:"user_name"` // Nickname
PlatformType string `json:"platform_type"` // Platform type
MasteryRankLevel int64 `json:"mastery_rank_level"` // Mastery Rank
MasteryRankExp int64 `json:"mastery_rank_exp"` // Mastery EXP
TitlePrefix string `json:"title_prefix_id"` // Prefix title identifier (Refer to /meta/title API)
TitleSuffix string `json:"title_suffix_id"` // Suffix title identifier (Refer to /meta/title API)
OSLanguage string `json:"os_language"` // OS language settings
GameLanguage string `json:"game_language"` // Game language settings
}
type UserDescendant ¶
type UserDescendant struct {
AccountIdentifier
UserName string `json:"user_name"` // Nickname
ID string `json:"descendant_id"` // Equipped descendant identifier
SlotID string `json:"descendant_slot_id"` // Descendant slot identifier
Level int64 `json:"descendant_level"` // Equipped descendant level
ModuleMaxCapacity int64 `json:"module_max_capacity"` // Max. equippable module capacity
ModuleCapacity int64 `json:"module_capacity"` // Equipped capacity
Modules []ModuleInfo `json:"module"` // Module information
}
type UserExternalComponent ¶
type UserExternalComponent struct {
AccountIdentifier
UserName string `json:"user_name"` // Nickname
ExternalComponents []ExternalComponentInfo `json:"external_component"` // External component information
}
type UserReactor ¶
type UserReactor struct {
AccountIdentifier
UserName string `json:"user_name"` // Nickname
ID string `json:"reactor_id"` // Reactor identifier (Refer to /meta/reactor API)
SlotID string `json:"reactor_slot_id"` // Reactor slot identifier
Level int64 `json:"reactor_level"` // Reactor level
AdditionalStats []ReactorAdditionalStats `json:"reactor_additional_stats"` // Reactor information
EnchantLevel int64 `json:"reactor_enchant_level"` // Reactor enchantment level
}
type UserWeapon ¶
type UserWeapon struct {
AccountIdentifier
UserName string `json:"user_name"` // Nickname
Weapons []WeaponInfo `json:"weapon"` // Weapon information
}
type VoidBattleResponse ¶
type Weapon ¶
type Weapon struct {
Name string `json:"weapon_name"`
ID string `json:"weapon_id"`
ImageURL string `json:"image_url"`
Type string `json:"weapon_type"`
Tier string `json:"weapon_tier"`
Rounds string `json:"weapon_rounds_type"`
BaseStat []BaseStat `json:"base_stat"`
FireArmATK []struct {
Level int64 `json:"level"`
FireArm []FireArm `json:"firearm"`
} `json:"firearm_atk"`
PerkAbilityName string `json:"weapon_perk_ability_name"`
AbilityDescription string `json:"weapon_perk_ability_description"`
AbilityImageURL string `json:"weapon_perk_ability_image_url"`
}
type WeaponAdditionalStats ¶
type WeaponInfo ¶
type WeaponInfo struct {
ModuleMaxCapacity int64 `json:"module_max_capacity"` // Max. equippable module capacity
ModuleCapacity int64 `json:"module_capacity"` // Equipped capacity
SlotID string `json:"weapon_slot_id"` // Weapon slot identifier
ID string `json:"weapon_id"` // Weapon identifier (Refer to /meta/weapon API)
Level int64 `json:"weapon_level"` // Weapon level
PerkAbilityEnchantmentLevel int64 `json:"perk_ability_enchant_level"` // Weapon Unique Ability enchantment level
AdditionalStats []WeaponAdditionalStats `json:"weapon_additional_stat"` // Weapon random option information
Module []ModuleInfo `json:"module"` // Module information
}
type WeaponModule ¶
type WeaponModule struct {
ModuleID string `json:"module_id"`
}
WeaponModule represents module recommendation information for a weapon
type WeaponRec ¶
type WeaponRec struct {
WeaponID string `json:"weapon_id"`
Recommendation []Recommendation
}
type WeaponRecommendation ¶
type WeaponRecommendation struct {
WeaponID string `json:"weapon_id"`
Recommendations []WeaponModule `json:"recommendation"`
}
WeaponRecommendation represents weapon recommendation information