Documentation ¶
Overview ¶
Package simulation provide the functionality required to run one simulation
Index ¶
- Variables
- func NewCore(seed int64, debug bool, cfg *ast.ActionList) (*core.Core, error)
- func SetupCharactersInCore(core *core.Core, chars []profile.CharacterProfile, initial keys.Char) error
- func SetupMisc(c *core.Core)
- func SetupResonance(s *core.Core)
- func SetupTargetsInCore(core *core.Core, p geometry.Point, r float64, targets []enemy.EnemyProfile) error
- type CharacterDetail
- type EnergyEvent
- type HurtEvent
- type Simulation
- type TalentDetail
- type WeaponDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMoreActions = errors.New("no more actions left")
Functions ¶
func SetupCharactersInCore ¶ added in v1.0.0
func SetupResonance ¶ added in v1.0.0
func SetupTargetsInCore ¶ added in v1.0.0
Types ¶
type CharacterDetail ¶ added in v1.2.2
type CharacterDetail struct { Name string `json:"name"` Element string `json:"element"` Level int `json:"level"` MaxLevel int `json:"max_level"` Cons int `json:"cons"` Weapon WeaponDetail `json:"weapon"` Talents TalentDetail `json:"talents"` Sets map[string]int `json:"sets"` Stats []float64 `json:"stats"` SnapshotStats []float64 `json:"snapshot"` }
type EnergyEvent ¶ added in v1.0.0
type Simulation ¶
func New ¶
func New(cfg *ast.ActionList, c *core.Core) (*Simulation, error)
func (*Simulation) AdvanceFrame ¶
func (s *Simulation) AdvanceFrame() error
func (*Simulation) CharacterDetails ¶ added in v1.2.2
func (sim *Simulation) CharacterDetails() []CharacterDetail
type TalentDetail ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.