blob: 41783a712190d24ff9b7ecbf46f19f19a63a2dc1 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package grils
import (
"fagott.pw/charakterin"
"fagott.pw/grilist/grilist"
"time"
)
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 (m *GrilsModule) FromID(id int) *Gril {
return &Gril{
ID: id,
KanjiName: "藤林 杏",
RomajiName: "Kyou Fujibayashi",
OtherNames: []string{"ふじばやし きょう"},
Age: 17,
Birthday: time.Now(),
Tags: []string{"tsundere", "hair intakes", "hair ribbon", "school uniform", "school crest"},
}
}
func New() *GrilsModule {
return &GrilsModule{}
}
|