creditroll

package
v0.0.0-...-23cb9d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Able

type Able interface {
	common.BasicFace
	common.SpaceFace
	Face
}

Able is the interface for if the entity is compatible with the bullet system

type Component

type Component struct{}

Component is the bullet component

func (*Component) GetCreditRollComponent

func (c *Component) GetCreditRollComponent() *Component

GetCreditRollComponent returns the bullet component

type Face

type Face interface {
	GetCreditRollComponent() *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, cred *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) New

func (s *System) New(w *ecs.World)

func (*System) Remove

func (s *System) Remove(basic ecs.BasicEntity)

Remove removes an entity from the System

func (*System) Update

func (s *System) Update(dt float32)

Update is called each frame

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL