package selection
import "kaiju/editor/selection"
Types
Selection
struct
type Selection struct {
Changed events.Event
// Has unexported fields.
}
New
func New(host *engine.Host, history *memento.History) Selection
Selection.Add
func (s *Selection) Add(e ...*engine.Entity)
Selection.Bounds
func (s *Selection) Bounds() collision.AABB
Selection.Center
func (s *Selection) Center() matrix.Vec3
Selection.Clear
func (s *Selection) Clear()
Selection.Entities
func (s *Selection) Entities() []*engine.Entity
Selection.Focus
func (s *Selection) Focus(camera cameras.Camera)
Selection.HasSelection
func (s *Selection) HasSelection() bool
Selection.IsEmpty
func (s *Selection) IsEmpty() bool
Selection.Parent
func (s *Selection) Parent(history *memento.History)
Selection.Remove
func (s *Selection) Remove(e ...*engine.Entity)
Selection.Set
func (s *Selection) Set(e ...*engine.Entity)
Selection.Toggle
func (s *Selection) Toggle(e ...*engine.Entity)
Selection.UntrackedAdd
func (s *Selection) UntrackedAdd(e ...*engine.Entity)
Selection.UntrackedClear
func (s *Selection) UntrackedClear()
Selection.Update
func (s *Selection) Update(host *engine.Host)