wall

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: 5 Imported by: 1

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 System

type Component

type Component struct{}

Component is required for the system

func (*Component) GetWallComponent

func (c *Component) GetWallComponent() *Component

GetWallComponent impl;ements the Wallable interface

type Face

type Face interface {
	GetWallComponent() *Component
}

Face is something able to retrieve it's wall Component

type System

type System struct {
	// contains filtered or unexported fields
}

System moves the wall tiles to look like falling

func (*System) Add

func (s *System) Add(basic *ecs.BasicEntity, space *common.SpaceComponent, wall *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 Able interface to the system

func (*System) New

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

New adds the walls to the scene

func (*System) Remove

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

Remove removes an entity from the system. It doesn't do anything as there is no need to remove entites from the system.

func (*System) Update

func (s *System) Update(dt float32)

Update is called every frame.

Jump to

Keyboard shortcuts

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