-
Notifications
You must be signed in to change notification settings - Fork 2
/
quest_progress.go
64 lines (53 loc) · 1.34 KB
/
quest_progress.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package s9
import (
"bytes"
"os"
"github.com/baranovskis/bmd-converter/bmd"
)
type QuestProgress struct {
bmd.BaseBmdAdapter // inherits methods
}
func (qp *QuestProgress) GetStruct() interface{} {
type bmdStruct struct {
ID1 uint16 `csv:"id_1"`
ID2 uint16 `csv:"id_2"`
ID3 byte `csv:"id_3"`
ID4 uint16 `csv:"id_4"`
ID5 uint16 `csv:"id_5"`
ID6 uint16 `csv:"id_6"`
ID7 uint16 `csv:"id_7"`
ID8 uint16 `csv:"id_8"`
ID9 uint16 `csv:"id_9"`
ID10 uint16 `csv:"id_10"`
ID11 uint16 `csv:"id_11"`
ID12 uint16 `csv:"id_12"`
ID13 uint16 `csv:"id_13"`
ID14 uint16 `csv:"id_14"`
ID15 uint16 `csv:"id_15"`
ID16 uint16 `csv:"id_16"`
ID17 uint16 `csv:"id_17"`
ID18 uint16 `csv:"id_18"`
ID19 uint16 `csv:"id_19"`
ID20 uint16 `csv:"id_20"`
ID21 uint16 `csv:"id_21"`
}
return &bmdStruct{}
}
func (qp *QuestProgress) GetVersion(data *[]byte) (res int16, err error) {
return -1, nil
}
func (qp *QuestProgress) GetRowsCount(data *[]byte) (res int32, err error) {
return -1, nil
}
func (qp *QuestProgress) GetCrcValue(data *[]byte) (res int32, err error) {
return -1, nil
}
func (qp *QuestProgress) SetVersion(file *os.File) error {
return nil
}
func (qp *QuestProgress) SetRowsCount(file *os.File, count int) error {
return nil
}
func (qp *QuestProgress) SetCrcValue(file *os.File, buff bytes.Buffer) error {
return nil
}