-
Notifications
You must be signed in to change notification settings - Fork 3
/
system_test.go
32 lines (26 loc) · 1.34 KB
/
system_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package engine_test
import (
"github.com/autovelop/playthos"
// "testing"
)
// TODO(F): Write System tests
type MockUpdaterSystem struct{ engine.System }
func (m *MockUpdaterSystem) InitSystem() {}
func (m *MockUpdaterSystem) Destroy() {}
func (m *MockUpdaterSystem) DeleteEntity(entity *engine.Entity) {}
func (m *MockUpdaterSystem) Update() {}
func (m *MockUpdaterSystem) AddComponent(component engine.ComponentRoutine) {}
func (m *MockUpdaterSystem) ComponentTypes() []engine.ComponentRoutine {
return []engine.ComponentRoutine{}
}
func (m *MockUpdaterSystem) AddIntegrant(integrant engine.IntegrantRoutine) {}
type MockDrawerSystem struct{ engine.System }
func (m *MockDrawerSystem) InitSystem() {}
func (m *MockDrawerSystem) Destroy() {}
func (m *MockDrawerSystem) DeleteEntity(entity *engine.Entity) {}
func (m *MockDrawerSystem) Draw() {}
func (m *MockDrawerSystem) AddComponent(component engine.ComponentRoutine) {}
func (m *MockDrawerSystem) ComponentTypes() []engine.ComponentRoutine {
return []engine.ComponentRoutine{}
}
func (m *MockDrawerSystem) AddIntegrant(integrant engine.IntegrantRoutine) {}