-
Notifications
You must be signed in to change notification settings - Fork 2
/
evolution_monster_box.go
56 lines (45 loc) · 1.26 KB
/
evolution_monster_box.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
package s9
import (
"bytes"
"os"
"github.com/baranovskis/bmd-converter/bmd"
)
type EvolutionMonsterBox struct {
bmd.BaseBmdAdapter // inherits methods
}
// Unfinished!
func (em *EvolutionMonsterBox) GetStruct() interface{} {
type bmdStruct struct {
Unk1 uint8 `csv:"unk_1"`
Unk2 uint8 `csv:"unk_2"`
Unk3 uint8 `csv:"unk_3"`
Unk4 uint8 `csv:"unk_4"`
Unk5 uint8 `csv:"unk_5"`
Unk6 uint8 `csv:"unk_6"`
Unk7 uint8 `csv:"unk_7"`
Unk8 uint8 `csv:"unk_8"`
Unk9 uint8 `csv:"unk_9"`
Unk10 uint8 `csv:"unk_10"`
Unk11 uint8 `csv:"unk_11"`
Unk12 uint8 `csv:"unk_12"`
}
return &bmdStruct{}
}
func (em *EvolutionMonsterBox) GetVersion(data *[]byte) (res int16, err error) {
return -1, nil
}
func (em *EvolutionMonsterBox) GetRowsCount(data *[]byte) (res int32, err error) {
return bmd.GetRowsCount(data)
}
func (em *EvolutionMonsterBox) GetCrcValue(data *[]byte) (res int32, err error) {
return bmd.GetCrcValue(data)
}
func (em *EvolutionMonsterBox) SetVersion(file *os.File) error {
return nil
}
func (em *EvolutionMonsterBox) SetRowsCount(file *os.File, count int) error {
return bmd.SetRowsCount(file, count)
}
func (em *EvolutionMonsterBox) SetCrcValue(file *os.File, buff bytes.Buffer) error {
return bmd.SetCrcValue(file, buff, 0xE2F1)
}