s1

package
v0.0.0-...-d0e78e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = cli.Command{
	Name:  "s1",
	Usage: "Run season 1 file conversion",
	Subcommands: cli.Commands{
		{
			Name:  "text",
			Usage: "Convert Text file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Text{})
			},
		},
		{
			Name:  "item",
			Usage: "Convert Item file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Item{})
			},
		},
		{
			Name:  "slide",
			Usage: "Convert Slide file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Slide{})
			},
		},
		{
			Name:  "item_set_option",
			Usage: "Convert Item Set Option file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &ItemSetOption{})
			},
		},
		{
			Name:  "movereq",
			Usage: "Convert Move Req file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &MoveReq{})
			},
		},
	},
}

Functions

This section is empty.

Types

type Item

type Item struct {
	bmd.BaseBmdAdapter // inherits methods
}

func (*Item) GetCrcValue

func (i *Item) GetCrcValue(data *[]byte) (res int32, err error)

func (*Item) GetRowsCount

func (i *Item) GetRowsCount(data *[]byte) (res int32, err error)

func (*Item) GetStruct

func (i *Item) GetStruct() interface{}

func (*Item) GetVersion

func (i *Item) GetVersion(data *[]byte) (res int16, err error)

func (*Item) SetCrcValue

func (i *Item) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Item) SetRowsCount

func (i *Item) SetRowsCount(file *os.File, count int) error

func (*Item) SetVersion

func (i *Item) SetVersion(file *os.File) error

type ItemSetOption

type ItemSetOption struct {
	bmd.BaseBmdAdapter // inherits methods
}

func (*ItemSetOption) GetCrcValue

func (is *ItemSetOption) GetCrcValue(data *[]byte) (res int32, err error)

func (*ItemSetOption) GetRowsCount

func (is *ItemSetOption) GetRowsCount(data *[]byte) (res int32, err error)

func (*ItemSetOption) GetStruct

func (is *ItemSetOption) GetStruct() interface{}

func (*ItemSetOption) GetVersion

func (is *ItemSetOption) GetVersion(data *[]byte) (res int16, err error)

func (*ItemSetOption) SetCrcValue

func (is *ItemSetOption) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*ItemSetOption) SetRowsCount

func (is *ItemSetOption) SetRowsCount(file *os.File, count int) error

func (*ItemSetOption) SetVersion

func (is *ItemSetOption) SetVersion(file *os.File) error

type MoveReq

type MoveReq struct {
	bmd.BaseBmdAdapter // inherits methods
}

func (*MoveReq) GetCrcValue

func (m *MoveReq) GetCrcValue(data *[]byte) (res int32, err error)

func (*MoveReq) GetRowsCount

func (m *MoveReq) GetRowsCount(data *[]byte) (res int32, err error)

func (*MoveReq) GetStruct

func (m *MoveReq) GetStruct() interface{}

func (*MoveReq) GetVersion

func (m *MoveReq) GetVersion(data *[]byte) (res int16, err error)

func (*MoveReq) SetCrcValue

func (m *MoveReq) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*MoveReq) SetRowsCount

func (m *MoveReq) SetRowsCount(file *os.File, count int) error

func (*MoveReq) SetVersion

func (m *MoveReq) SetVersion(file *os.File) error

type Slide

type Slide struct {
	bmd.BaseBmdAdapter // inherits methods
}

func (*Slide) GetCrcValue

func (s *Slide) GetCrcValue(data *[]byte) (res int32, err error)

func (*Slide) GetRowsCount

func (s *Slide) GetRowsCount(data *[]byte) (res int32, err error)

func (*Slide) GetStruct

func (s *Slide) GetStruct() interface{}

func (*Slide) GetVersion

func (s *Slide) GetVersion(data *[]byte) (res int16, err error)

func (*Slide) SetCrcValue

func (s *Slide) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Slide) SetRowsCount

func (s *Slide) SetRowsCount(file *os.File, count int) error

func (*Slide) SetVersion

func (s *Slide) SetVersion(file *os.File) error

type Text

type Text struct {
	bmd.BaseBmdAdapter // inherits methods
}

func (*Text) GetCrcValue

func (t *Text) GetCrcValue(data *[]byte) (res int32, err error)

func (*Text) GetRowsCount

func (t *Text) GetRowsCount(data *[]byte) (res int32, err error)

func (*Text) GetStruct

func (t *Text) GetStruct() interface{}

func (*Text) GetVersion

func (t *Text) GetVersion(data *[]byte) (res int16, err error)

func (*Text) SetCrcValue

func (t *Text) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Text) SetRowsCount

func (t *Text) SetRowsCount(file *os.File, count int) error

func (*Text) SetVersion

func (t *Text) SetVersion(file *os.File) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL