Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Angle float32
}
Component is the bullet component
func (*Component) GetBulletComponent ¶
GetBulletComponent returns the bullet component
type Face ¶
type Face interface {
GetBulletComponent() *Component
}
Face is the interface for an entity with a bullet component
type System ¶
type System struct {
// contains filtered or unexported fields
}
System is the bullet system
func (*System) Add ¶
func (s *System) Add(basic *ecs.BasicEntity, space *common.SpaceComponent, bullet *Component)
Add adds an entity to the System
func (*System) AddByInterface ¶
func (s *System) AddByInterface(i ecs.Identifier)
AddByInterface adds an entity that implements the bullet able interface
func (*System) Remove ¶
func (s *System) Remove(basic ecs.BasicEntity)
Remove removes an entity from the System
Click to show internal directories.
Click to hide internal directories.