Documentation ¶
Index ¶
- Constants
- func GetPopularAndRandomMiis(pool *pgxpool.Pool, ctx context.Context, max int) ([]common.MiiWithArtisan, error)
- func MakeArtisanInfo(entryNumber uint32, miiInfo *MiiInfo, artisanInfo *ArtisanInfo) []byte
- func MakeBargainList(pool *pgxpool.Pool, ctx context.Context) error
- func MakeList(listType common.ListTag, miis []common.MiiWithArtisan, filename string, ...) error
- func MakeNewList(pool *pgxpool.Pool, ctx context.Context) error
- func MakeNumberInfo(pool *pgxpool.Pool, ctx context.Context) error
- func MakeOwnSearch(miis []common.MiiWithArtisan, artisanId uint32) []byte
- func MakePopCraftsList(pool *pgxpool.Pool, ctx context.Context) error
- func MakeSearchList(listType common.ListTag, miis []common.MiiWithArtisan, entryNumber uint32) []byte
- func MakeSelectList(pool *pgxpool.Pool, ctx context.Context) error
- func MakeSpotList(pool *pgxpool.Pool, ctx context.Context) error
- func MakeTop50(pool *pgxpool.Pool, ctx context.Context) error
- func WriteWiiSportsResortMiis(pool *pgxpool.Pool, ctx context.Context) error
- type Artisan
- type ArtisanInfo
- type ExtendedArtisan
- type Header
- type Info
- type Mii
- type MiiInfo
- type MiiList
- type MiiPair
- type NumberInfo
- type OwnSearch
- type Popcrafts
- type PopcraftsHeader
- type RK
- type ResortMii
- type WiiSportsResort
Constants ¶
View Source
const ( GetNumberOfMiis = `SELECT COUNT(*) FROM miis` GetNumberOfArtisans = `SELECT COUNT(*) FROM artisans` )
View Source
const ( GetPopularArtisans = `SELECT artisan_id FROM artisans WHERE artisan_id != 100000993 ORDER BY total_likes DESC LIMIT 100` GetArtisan = `SELECT mii_data, total_likes, country_id, is_master, last_post FROM artisans WHERE artisan_id = $1` )
View Source
const ( GetPopularMiis = `` /* 270-byte string literal not displayed */ GetPermPopularMiis = `` /* 297-byte string literal not displayed */ GetNumberOfMiisWithLikes = `SELECT COUNT(*) FROM miis WHERE likes > 0` ResetMiiLikes = `UPDATE miis SET likes = 0` )
View Source
const GetBargainMiis = `` /* 274-byte string literal not displayed */
View Source
const GetMiis = `` /* 276-byte string literal not displayed */
View Source
const GetMiisBySkillAndGender = `` /* 315-byte string literal not displayed */
View Source
const (
GetTop50Miis = `` /* 280-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func GetPopularAndRandomMiis ¶
func MakeArtisanInfo ¶
func MakeArtisanInfo(entryNumber uint32, miiInfo *MiiInfo, artisanInfo *ArtisanInfo) []byte
func MakeOwnSearch ¶
func MakeOwnSearch(miis []common.MiiWithArtisan, artisanId uint32) []byte
func MakeSearchList ¶
Types ¶
type ArtisanInfo ¶
type ExtendedArtisan ¶
type Info ¶
type MiiList ¶
MiiList is the structure that different types of inherit. It contains a list of Miis and their corresponding Artisans.
type NumberInfo ¶
type NumberInfo struct { Tag common.ListTag CountryRegion uint32 ListNumber uint32 ErrorCode uint32 Padding [4]byte NumberInfoTag [2]byte TagSize uint16 Unknown uint32 NumberOfMiis uint32 NumberOfMiiArtisans uint32 // contains filtered or unexported fields }
func (NumberInfo) ToBytes ¶
func (f NumberInfo) ToBytes(data any) []byte
type OwnSearch ¶
OwnSearch is the data the server requests when searching for a Mii artisan. It is essentially MiiList but without the artisan.
type Popcrafts ¶
type Popcrafts struct { Header PopcraftsHeader Artisans []ExtendedArtisan }
type PopcraftsHeader ¶
Click to show internal directories.
Click to hide internal directories.