Documentation ¶
Index ¶
- func ConvertProtoElement(e model.Element) attributes.Element
- func ConvertProtoStat(s model.StatType) attributes.Stat
- func ConvertRarity(q model.QualityType) int
- type ActionList
- type BodyType
- type CharacterBase
- type CharacterProfile
- type Coord
- type Delays
- type DrainInfo
- type EnemyProfile
- type EnergySettings
- type HealInfo
- type HealType
- type HurtSettings
- type RandomSubstats
- type Set
- type Sets
- type SimulatorSettings
- type TalentProfile
- type Weapon
- type WeaponClass
- type WeaponProfile
- type ZoneType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertProtoElement ¶
func ConvertProtoElement(e model.Element) attributes.Element
func ConvertProtoStat ¶
func ConvertProtoStat(s model.StatType) attributes.Stat
func ConvertRarity ¶
func ConvertRarity(q model.QualityType) int
Types ¶
type ActionList ¶
type ActionList struct { Targets []EnemyProfile `json:"targets"` InitialPlayerPos Coord `json:"initial_player_pos"` Characters []CharacterProfile `json:"characters"` InitialChar keys.Char `json:"initial_char"` EnergySettings EnergySettings `json:"energy_settings"` HurtSettings HurtSettings `json:"hurt_settings"` Settings SimulatorSettings `json:"settings"` Errors []error `json:"-"` // These represents errors preventing ActionList from being executed ErrorMsgs []string `json:"error_msgs"` }
func (*ActionList) Copy ¶
func (a *ActionList) Copy() *ActionList
func (*ActionList) PrettyPrint ¶
func (a *ActionList) PrettyPrint() string
type CharacterBase ¶
type CharacterBase struct { Key keys.Char `json:"key"` Rarity int `json:"rarity"` Element attributes.Element `json:"element"` Level int `json:"level"` MaxLevel int `json:"max_level"` Ascension int `json:"ascension"` HP float64 `json:"hp"` Atk float64 `json:"atk"` Def float64 `json:"def"` Cons int `json:"cons"` }
type CharacterProfile ¶
type CharacterProfile struct { Base CharacterBase `json:"base"` Weapon WeaponProfile `json:"weapon"` Talents TalentProfile `json:"talents"` Stats []float64 `json:"stats"` StatsByLabel map[string][]float64 `json:"stats_by_label"` RandomSubstats *RandomSubstats `json:"random_substats"` Sets Sets `json:"sets"` SetParams map[keys.Set]map[string]int `json:"-"` Params map[string]int `json:"-"` }
func (*CharacterProfile) Clone ¶
func (c *CharacterProfile) Clone() CharacterProfile
type EnemyProfile ¶
type EnemyProfile struct { Level int `json:"level"` HP float64 `json:"hp"` Resist attributes.ElementMap `json:"resist"` Pos Coord `json:"-"` ParticleDropThreshold float64 `json:"particle_drop_threshold"` // drop particle every x dmg dealt ParticleDropCount float64 `json:"particle_drop_count"` ParticleElement attributes.Element `json:"particle_element"` FreezeResist float64 `json:"freeze_resist"` ParticleDrops []*model.MonsterHPDrop `json:"-"` HpBase float64 `json:"-"` HpGrowCurve model.MonsterCurveType `json:"-"` Id int `json:"-"` MonsterName string `json:"monster_name"` Modified bool `json:"modified"` }
func (*EnemyProfile) Clone ¶
func (e *EnemyProfile) Clone() EnemyProfile
type EnergySettings ¶
type HurtSettings ¶
type RandomSubstats ¶
type RandomSubstats struct { Rarity int `json:"rarity"` Sand attributes.Stat Goblet attributes.Stat Circlet attributes.Stat }
func (RandomSubstats) Validate ¶
func (r RandomSubstats) Validate() error
type Sets ¶
func (Sets) MarshalJSON ¶
type SimulatorSettings ¶
type SimulatorSettings struct { Duration float64 `json:"-"` DamageMode bool `json:"damage_mode"` EnableHitlag bool `json:"enable_hitlag"` DefHalt bool `json:"def_halt"` // for hitlag IgnoreBurstEnergy bool `json:"ignore_burst_energy"` // other stuff NumberOfWorkers int `json:"-"` // how many workers to run the simulation Iterations int `json:"iterations"` // how many iterations to run Delays Delays `json:"delays"` // Specify which stats to collect. An empty/nil slice enables all CollectStats []string `json:"-"` }
type TalentProfile ¶
type WeaponClass ¶
type WeaponClass int
const ( WeaponClassSword WeaponClass = iota WeaponClassClaymore WeaponClassSpear WeaponClassBow WeaponClassCatalyst EndWeaponClass )
func ConvertWeaponClass ¶
func ConvertWeaponClass(w model.WeaponClass) WeaponClass
func (WeaponClass) MarshalJSON ¶
func (w WeaponClass) MarshalJSON() ([]byte, error)
func (WeaponClass) String ¶
func (w WeaponClass) String() string
func (*WeaponClass) UnmarshalJSON ¶
func (w *WeaponClass) UnmarshalJSON(b []byte) error
type WeaponProfile ¶
Click to show internal directories.
Click to hide internal directories.