s9

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:  "s9",
	Usage: "Run season 9 file conversion",
	Subcommands: cli.Commands{
		{
			Name:  "quest_words",
			Usage: "Convert Quest Words file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &QuestWords{})
			},
		},
		{
			Name:  "quest_progress",
			Usage: "Convert Quest Progress file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &QuestProgress{})
			},
		},
		{
			Name:  "npc_dialog",
			Usage: "Convert Npc Dialog file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &NpcDialog{})
			},
		},
		{
			Name:  "npc_name",
			Usage: "Convert Npc Name file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &NpcName{})
			},
		},
		{
			Name:  "buff_effect",
			Usage: "Convert Buff Effect file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &BuffEffect{})
			},
		},
		{
			Name:  "attribute_variation",
			Usage: "Convert Attribute Variation file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &AttributeVariation{})
			},
		},
		{
			Name:  "arca_battle_booty_mix",
			Usage: "Convert Arca Battle Booty Mix file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &ArcaBattleBootyMix{})
			},
		},
		{
			Name:  "item_level_tooltip",
			Usage: "Convert Item Level Tooltip file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &ItemLevelTooltip{})
			},
		},
		{
			Name:  "bonus_exp",
			Usage: "Convert Bonus Exp file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &BonusExp{})
			},
		},
		{
			Name:  "credit",
			Usage: "Convert Credit file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Credit{})
			},
		},
		{
			Name:  "evolution_monster_box",
			Usage: "Convert Evolution Monster Box file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &EvolutionMonsterBox{})
			},
		},
		{
			Name:  "filter",
			Usage: "Convert Filter file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Filter{})
			},
		},
		{
			Name:  "filter_name",
			Usage: "Convert Filter Name file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &FilterName{})
			},
		},
		{
			Name:  "gate",
			Usage: "Convert Gate file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &Gate{})
			},
		},
		{
			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:  "item_tooltip",
			Usage: "Convert Item Tooltip file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &ItemTooltip{})
			},
		},
		{
			Name:  "item_tooltip_text",
			Usage: "Convert Item Tooltip Text file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &ItemTooltipText{})
			},
		},
		{
			Name:  "movereq",
			Usage: "Convert Move Req file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &MoveReq{})
			},
		},
		{
			Name:  "minimap",
			Usage: "Convert Mini Map file format",
			Action: func(c *cli.Context) error {
				return util.CommandAction(c, &MiniMap{})
			},
		},
	},
}

Functions

This section is empty.

Types

type ArcaBattleBootyMix

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

func (*ArcaBattleBootyMix) GetCrcValue

func (ab *ArcaBattleBootyMix) GetCrcValue(data *[]byte) (res int32, err error)

func (*ArcaBattleBootyMix) GetRowsCount

func (ab *ArcaBattleBootyMix) GetRowsCount(data *[]byte) (res int32, err error)

func (*ArcaBattleBootyMix) GetStruct

func (ab *ArcaBattleBootyMix) GetStruct() interface{}

func (*ArcaBattleBootyMix) GetVersion

func (ab *ArcaBattleBootyMix) GetVersion(data *[]byte) (res int16, err error)

func (*ArcaBattleBootyMix) SetCrcValue

func (ab *ArcaBattleBootyMix) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*ArcaBattleBootyMix) SetRowsCount

func (ab *ArcaBattleBootyMix) SetRowsCount(file *os.File, count int) error

func (*ArcaBattleBootyMix) SetVersion

func (ab *ArcaBattleBootyMix) SetVersion(file *os.File) error

type AttributeVariation

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

func (*AttributeVariation) GetCrcValue

func (av *AttributeVariation) GetCrcValue(data *[]byte) (res int32, err error)

func (*AttributeVariation) GetRowsCount

func (av *AttributeVariation) GetRowsCount(data *[]byte) (res int32, err error)

func (*AttributeVariation) GetStruct

func (av *AttributeVariation) GetStruct() interface{}

func (*AttributeVariation) GetVersion

func (av *AttributeVariation) GetVersion(data *[]byte) (res int16, err error)

func (*AttributeVariation) SetCrcValue

func (av *AttributeVariation) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*AttributeVariation) SetRowsCount

func (av *AttributeVariation) SetRowsCount(file *os.File, count int) error

func (*AttributeVariation) SetVersion

func (av *AttributeVariation) SetVersion(file *os.File) error

type BonusExp

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

func (*BonusExp) GetCrcValue

func (be *BonusExp) GetCrcValue(data *[]byte) (res int32, err error)

func (*BonusExp) GetRowsCount

func (be *BonusExp) GetRowsCount(data *[]byte) (res int32, err error)

func (*BonusExp) GetStruct

func (be *BonusExp) GetStruct() interface{}

func (*BonusExp) GetVersion

func (be *BonusExp) GetVersion(data *[]byte) (res int16, err error)

func (*BonusExp) SetCrcValue

func (be *BonusExp) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*BonusExp) SetRowsCount

func (be *BonusExp) SetRowsCount(file *os.File, count int) error

func (*BonusExp) SetVersion

func (be *BonusExp) SetVersion(file *os.File) error

type BuffEffect

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

func (*BuffEffect) GetCrcValue

func (be *BuffEffect) GetCrcValue(data *[]byte) (res int32, err error)

func (*BuffEffect) GetRowsCount

func (be *BuffEffect) GetRowsCount(data *[]byte) (res int32, err error)

func (*BuffEffect) GetStruct

func (be *BuffEffect) GetStruct() interface{}

func (*BuffEffect) GetVersion

func (be *BuffEffect) GetVersion(data *[]byte) (res int16, err error)

func (*BuffEffect) SetCrcValue

func (be *BuffEffect) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*BuffEffect) SetRowsCount

func (be *BuffEffect) SetRowsCount(file *os.File, count int) error

func (*BuffEffect) SetVersion

func (be *BuffEffect) SetVersion(file *os.File) error

type Credit

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

func (*Credit) GetCrcValue

func (c *Credit) GetCrcValue(data *[]byte) (res int32, err error)

func (*Credit) GetRowsCount

func (c *Credit) GetRowsCount(data *[]byte) (res int32, err error)

func (*Credit) GetStruct

func (c *Credit) GetStruct() interface{}

func (*Credit) GetVersion

func (c *Credit) GetVersion(data *[]byte) (res int16, err error)

func (*Credit) SetCrcValue

func (c *Credit) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Credit) SetRowsCount

func (c *Credit) SetRowsCount(file *os.File, count int) error

func (*Credit) SetVersion

func (c *Credit) SetVersion(file *os.File) error

type EvolutionMonsterBox

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

func (*EvolutionMonsterBox) GetCrcValue

func (em *EvolutionMonsterBox) GetCrcValue(data *[]byte) (res int32, err error)

func (*EvolutionMonsterBox) GetRowsCount

func (em *EvolutionMonsterBox) GetRowsCount(data *[]byte) (res int32, err error)

func (*EvolutionMonsterBox) GetStruct

func (em *EvolutionMonsterBox) GetStruct() interface{}

Unfinished!

func (*EvolutionMonsterBox) GetVersion

func (em *EvolutionMonsterBox) GetVersion(data *[]byte) (res int16, err error)

func (*EvolutionMonsterBox) SetCrcValue

func (em *EvolutionMonsterBox) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*EvolutionMonsterBox) SetRowsCount

func (em *EvolutionMonsterBox) SetRowsCount(file *os.File, count int) error

func (*EvolutionMonsterBox) SetVersion

func (em *EvolutionMonsterBox) SetVersion(file *os.File) error

type Filter

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

func (*Filter) GetCrcValue

func (f *Filter) GetCrcValue(data *[]byte) (res int32, err error)

func (*Filter) GetRowsCount

func (f *Filter) GetRowsCount(data *[]byte) (res int32, err error)

func (*Filter) GetStruct

func (f *Filter) GetStruct() interface{}

func (*Filter) GetVersion

func (f *Filter) GetVersion(data *[]byte) (res int16, err error)

func (*Filter) SetCrcValue

func (f *Filter) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Filter) SetRowsCount

func (f *Filter) SetRowsCount(file *os.File, count int) error

func (*Filter) SetVersion

func (f *Filter) SetVersion(file *os.File) error

type FilterName

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

func (*FilterName) GetCrcValue

func (fn *FilterName) GetCrcValue(data *[]byte) (res int32, err error)

func (*FilterName) GetRowsCount

func (fn *FilterName) GetRowsCount(data *[]byte) (res int32, err error)

func (*FilterName) GetStruct

func (fn *FilterName) GetStruct() interface{}

func (*FilterName) GetVersion

func (fn *FilterName) GetVersion(data *[]byte) (res int16, err error)

func (*FilterName) SetCrcValue

func (fn *FilterName) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*FilterName) SetRowsCount

func (fn *FilterName) SetRowsCount(file *os.File, count int) error

func (*FilterName) SetVersion

func (fn *FilterName) SetVersion(file *os.File) error

type Gate

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

func (*Gate) GetCrcValue

func (g *Gate) GetCrcValue(data *[]byte) (res int32, err error)

func (*Gate) GetRowsCount

func (g *Gate) GetRowsCount(data *[]byte) (res int32, err error)

func (*Gate) GetStruct

func (g *Gate) GetStruct() interface{}

func (*Gate) GetVersion

func (g *Gate) GetVersion(data *[]byte) (res int16, err error)

func (*Gate) SetCrcValue

func (g *Gate) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*Gate) SetRowsCount

func (g *Gate) SetRowsCount(file *os.File, count int) error

func (*Gate) SetVersion

func (g *Gate) SetVersion(file *os.File) error

type Item

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

func (*Item) GetCrcValue

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

GetCrcValue is return crc value

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 ItemLevelTooltip

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

func (*ItemLevelTooltip) GetCrcValue

func (il *ItemLevelTooltip) GetCrcValue(data *[]byte) (res int32, err error)

func (*ItemLevelTooltip) GetRowsCount

func (il *ItemLevelTooltip) GetRowsCount(data *[]byte) (res int32, err error)

func (*ItemLevelTooltip) GetStruct

func (il *ItemLevelTooltip) GetStruct() interface{}

func (*ItemLevelTooltip) GetVersion

func (il *ItemLevelTooltip) GetVersion(data *[]byte) (res int16, err error)

func (*ItemLevelTooltip) SetCrcValue

func (il *ItemLevelTooltip) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*ItemLevelTooltip) SetRowsCount

func (il *ItemLevelTooltip) SetRowsCount(file *os.File, count int) error

func (*ItemLevelTooltip) SetVersion

func (il *ItemLevelTooltip) SetVersion(file *os.File) error

type ItemTooltip

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

func (*ItemTooltip) GetCrcValue

func (it *ItemTooltip) GetCrcValue(data *[]byte) (res int32, err error)

func (*ItemTooltip) GetRowsCount

func (it *ItemTooltip) GetRowsCount(data *[]byte) (res int32, err error)

func (*ItemTooltip) GetStruct

func (it *ItemTooltip) GetStruct() interface{}

func (*ItemTooltip) GetVersion

func (it *ItemTooltip) GetVersion(data *[]byte) (res int16, err error)

func (*ItemTooltip) SetCrcValue

func (it *ItemTooltip) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*ItemTooltip) SetRowsCount

func (it *ItemTooltip) SetRowsCount(file *os.File, count int) error

func (*ItemTooltip) SetVersion

func (it *ItemTooltip) SetVersion(file *os.File) error

type ItemTooltipText

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

func (*ItemTooltipText) GetCrcValue

func (it *ItemTooltipText) GetCrcValue(data *[]byte) (res int32, err error)

func (*ItemTooltipText) GetRowsCount

func (it *ItemTooltipText) GetRowsCount(data *[]byte) (res int32, err error)

func (*ItemTooltipText) GetStruct

func (it *ItemTooltipText) GetStruct() interface{}

func (*ItemTooltipText) GetVersion

func (it *ItemTooltipText) GetVersion(data *[]byte) (res int16, err error)

func (*ItemTooltipText) SetCrcValue

func (it *ItemTooltipText) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*ItemTooltipText) SetRowsCount

func (it *ItemTooltipText) SetRowsCount(file *os.File, count int) error

func (*ItemTooltipText) SetVersion

func (it *ItemTooltipText) SetVersion(file *os.File) error

type MiniMap

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

func (*MiniMap) GetCrcValue

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

func (*MiniMap) GetRowsCount

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

func (*MiniMap) GetStruct

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

func (*MiniMap) GetVersion

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

func (*MiniMap) SetCrcValue

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

func (*MiniMap) SetRowsCount

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

func (*MiniMap) SetVersion

func (m *MiniMap) 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 NpcDialog

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

func (*NpcDialog) GetCrcValue

func (nd *NpcDialog) GetCrcValue(data *[]byte) (res int32, err error)

func (*NpcDialog) GetRowsCount

func (nd *NpcDialog) GetRowsCount(data *[]byte) (res int32, err error)

func (*NpcDialog) GetStruct

func (nd *NpcDialog) GetStruct() interface{}

func (*NpcDialog) GetVersion

func (nd *NpcDialog) GetVersion(data *[]byte) (res int16, err error)

func (*NpcDialog) SetCrcValue

func (nd *NpcDialog) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*NpcDialog) SetRowsCount

func (nd *NpcDialog) SetRowsCount(file *os.File, count int) error

func (*NpcDialog) SetVersion

func (nd *NpcDialog) SetVersion(file *os.File) error

type NpcName

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

func (*NpcName) GetCrcValue

func (nn *NpcName) GetCrcValue(data *[]byte) (res int32, err error)

func (*NpcName) GetRowsCount

func (nn *NpcName) GetRowsCount(data *[]byte) (res int32, err error)

func (*NpcName) GetStruct

func (nn *NpcName) GetStruct() interface{}

func (*NpcName) GetVersion

func (nn *NpcName) GetVersion(data *[]byte) (res int16, err error)

func (*NpcName) SetCrcValue

func (nn *NpcName) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*NpcName) SetRowsCount

func (nn *NpcName) SetRowsCount(file *os.File, count int) error

func (*NpcName) SetVersion

func (nn *NpcName) SetVersion(file *os.File) error

type QuestProgress

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

func (*QuestProgress) GetCrcValue

func (qp *QuestProgress) GetCrcValue(data *[]byte) (res int32, err error)

func (*QuestProgress) GetRowsCount

func (qp *QuestProgress) GetRowsCount(data *[]byte) (res int32, err error)

func (*QuestProgress) GetStruct

func (qp *QuestProgress) GetStruct() interface{}

func (*QuestProgress) GetVersion

func (qp *QuestProgress) GetVersion(data *[]byte) (res int16, err error)

func (*QuestProgress) SetCrcValue

func (qp *QuestProgress) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*QuestProgress) SetRowsCount

func (qp *QuestProgress) SetRowsCount(file *os.File, count int) error

func (*QuestProgress) SetVersion

func (qp *QuestProgress) SetVersion(file *os.File) error

type QuestWords

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

func (*QuestWords) GetCrcValue

func (qw *QuestWords) GetCrcValue(data *[]byte) (res int32, err error)

func (*QuestWords) GetRowsCount

func (qw *QuestWords) GetRowsCount(data *[]byte) (res int32, err error)

func (*QuestWords) GetStruct

func (qw *QuestWords) GetStruct() interface{}

func (*QuestWords) GetVersion

func (qw *QuestWords) GetVersion(data *[]byte) (res int16, err error)

func (*QuestWords) SetCrcValue

func (qw *QuestWords) SetCrcValue(file *os.File, buff bytes.Buffer) error

func (*QuestWords) SetRowsCount

func (qw *QuestWords) SetRowsCount(file *os.File, count int) error

func (*QuestWords) SetVersion

func (qw *QuestWords) SetVersion(file *os.File) error

type Text

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

Text is ..

func (*Text) GetCrcValue

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

GetCrcValue is return crc value

func (*Text) GetRowsCount

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

GetRowsCount is return rows count

func (*Text) GetStruct

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

GetStruct is ...

func (*Text) GetVersion

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

GetVersion is return bmd version

func (*Text) SetCrcValue

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

SetCrcValue is write calculated crc value into file end

func (*Text) SetRowsCount

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

SetRowsCount is writec total rows count into file start

func (*Text) SetVersion

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

SetVersion is write bmd version into file start

Jump to

Keyboard shortcuts

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