first

package
v0.0.0-...-64c21b7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdditionJson []byte

Functions

func GetSupportedLanguages

func GetSupportedLanguages(countryCode uint8) common.LanguageFlag

func GetSupportedLanguagesForRegion

func GetSupportedLanguagesForRegion(region uint32) []uint32

func MakeAddition

func MakeAddition() error

func MakeFirst

func MakeFirst() error

Types

type Addition

type Addition struct {
	Header       AdditionHeader
	Countries    []CountryField
	Skills       []SkillField
	MarqueeField MarqueeField
}

func (Addition) ToBytes

func (a Addition) ToBytes(any) []byte

type AdditionHeader

type AdditionHeader struct {
	Type [2]byte

	CountryGroup uint32

	Padding [8]byte
	// contains filtered or unexported fields
}

type Child

type Child struct {
	Code uint32 `json:"code"`
	Name string `json:"name"`
}

type CountryField

type CountryField struct {
	Type        [2]byte
	FieldSize   uint16
	CountryCode uint32
	Text        [192]byte
}

type Entry

type Entry struct {
	Countries []Child `json:"countries"`
	Skills    []Child `json:"skills"`
}

type First

type First struct {
	Type             common.ListTag
	DiscontinuedFlag uint8

	CountryCode uint8

	Padding      [8]byte
	Tag          common.ListTag
	TagSize      uint16
	Unk          uint32
	CountryGroup uint8
	/*
		3rd lowest bits are unknown
		4th bit: Marquee Text
		3rd bit: Re-enable initials
		2nd bit: Disable initials
		1st bit: Show Mii Artisan
		0th bit: Show number of Miis in Posting Plaza
	*/
	FirstBitField uint8

	/*
		The below toggle the languages available for the message board service.

		7th bit: Unknown
		6th bit: Dutch
		5th bit: Italian
		4th bit: Spanish
		3rd bit: French
		2nd bit: German
		1st bit: English
		0th bit: Japanese
	*/
	SecondBitField common.LanguageFlag
	// contains filtered or unexported fields
}

func (First) ToBytes

func (f First) ToBytes(data any) []byte

type Languages

type Languages struct {
	Japanese *Entry `json:"0"`
	English  *Entry `json:"1"`
	German   *Entry `json:"2"`
	French   *Entry `json:"3"`
	Spanish  *Entry `json:"4"`
	Italian  *Entry `json:"5"`
	Dutch    *Entry `json:"6"`
}

func (*Languages) GetLanguageFromJSON

func (l *Languages) GetLanguageFromJSON(language uint32) *Entry

type MarqueeField

type MarqueeField struct {
	Tag         [2]byte
	SectionSize uint16
	Unknown     uint32
	Text        [1536]byte
}

type Root

type Root struct {
	Regions []Languages `json:"regions"`
}

type SkillField

type SkillField struct {
	Type      [2]byte
	FieldSize uint16
	SkillId   uint32
	Text      [96]byte
}

Jump to

Keyboard shortcuts

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