diff options
Diffstat (limited to 'modules/grils')
-rw-r--r-- | modules/grils/grils.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go new file mode 100644 index 0000000..6ce7c5e --- /dev/null +++ b/modules/grils/grils.go | |||
@@ -0,0 +1,33 @@ | |||
1 | package grils | ||
2 | |||
3 | import ( | ||
4 | "fagott.pw/charakterin" | ||
5 | "fagott.pw/grilist/grilist" | ||
6 | ) | ||
7 | |||
8 | type GrilsModule struct { | ||
9 | g *grilist.Grilist | ||
10 | Test []int | ||
11 | } | ||
12 | |||
13 | func (m *GrilsModule) Name() string { | ||
14 | return "Grils" | ||
15 | } | ||
16 | |||
17 | func (m *GrilsModule) Init(g *grilist.Grilist) { | ||
18 | m.g = g | ||
19 | m.Test = append(m.Test, len(m.Test) + 1) | ||
20 | } | ||
21 | |||
22 | func (m *GrilsModule) Interface() interface{} { | ||
23 | m.Test = append(m.Test, len(m.Test) + 1) | ||
24 | return m | ||
25 | } | ||
26 | |||
27 | func (m *GrilsModule) ProvideDashboardData(user *charakterin.User) grilist.DashboardCategory { | ||
28 | return grilist.DashboardCategory{} | ||
29 | } | ||
30 | |||
31 | func New() *GrilsModule { | ||
32 | return &GrilsModule{} | ||
33 | } | ||