aboutsummaryrefslogtreecommitdiff
path: root/modules/grils/grils.go
blob: 6ce7c5eeeafad9f570c441c8947f391af5c731e3 (plain)
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
33
package grils

import (
	"fagott.pw/charakterin"
	"fagott.pw/grilist/grilist"
)

type GrilsModule struct {
	g *grilist.Grilist
	Test []int
}

func (m *GrilsModule) Name() string {
	return "Grils"
}

func (m *GrilsModule) Init(g *grilist.Grilist) {
	m.g = g
	m.Test = append(m.Test, len(m.Test) + 1)
}

func (m *GrilsModule) Interface() interface{} {
	m.Test = append(m.Test, len(m.Test) + 1)
	return m
}

func (m *GrilsModule) ProvideDashboardData(user *charakterin.User) grilist.DashboardCategory {
	return grilist.DashboardCategory{}
}

func New() *GrilsModule {
	return &GrilsModule{}
}