renderers

package
v0.0.0-...-b3b8fb2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFontColorByTableTheme

func GetFontColorByTableTheme(theme string) string

func RenderAstolfo

func RenderAstolfo(data *AstolfoData, db *database.Cache) image.Image

func RenderBlackjack

func RenderBlackjack(data *BlackjackData, db *database.Cache) image.Image

func RenderEightball

func RenderEightball(data *EightballData, db *database.Cache) image.Image

func RenderGado

func RenderGado(data *GadoData, db *database.Database) image.Image

func RenderMacetava

func RenderMacetava(data *MacetavaData, db *database.Database) image.Image

func RenderPhilo

func RenderPhilo(data *PhiloData) image.Image

func RenderPokerHand

func RenderPokerHand(data *PokerHandData, db *database.Database) image.Image

func RenderPokerTable

func RenderPokerTable(data *PokerTableData, db *database.Database) image.Image

func RenderPreview

func RenderPreview(data *PreviewData, db *database.Cache) image.Image

func RenderShip

func RenderShip(data *ShipData, db *database.Database) image.Image

func RenderTrisal

func RenderTrisal(data *TrisalData, db *database.Database) image.Image

func RenderVasco

func RenderVasco(data *VascoData, db *database.Database) image.Image

Types

type AstolfoData

type AstolfoData struct {
	Text string `json:"text"`
}

type BlackjackCard

type BlackjackCard struct {
	Value  int  `json:"value"`
	IsAce  bool `json:"isAce"`
	Id     int  `json:"id"`
	Hidden bool `json:"hidden"`
}

type BlackjackData

type BlackjackData struct {
	UserCards           []BlackjackCard `json:"userCards"`
	MenheraCards        []BlackjackCard `json:"menheraCards"`
	UserTotal           int             `json:"userTotal"`
	MenheraTotal        int             `json:"menheraTotal"`
	I18n                BlackjackI18n   `json:"i18n"`
	Aposta              int             `json:"aposta"`
	CardTheme           string          `json:"cardTheme"`
	TableTheme          string          `json:"tableTheme"`
	BackgroundCardTheme string          `json:"backgroundCardTheme"`
}

type BlackjackI18n

type BlackjackI18n struct {
	YourHand   string `json:"yourHand"`
	DealerHand string `json:"dealerHand"`
}

type EightballData

type EightballData struct {
	Question        string `json:"question"`
	Type            string `json:"type"`
	Username        string `json:"username"`
	Answer          string `json:"answer"`
	BackgroundTheme string `json:"backgroundTheme"`
	TextBoxTheme    string `json:"textBoxTheme"`
	MenheraTheme    string `json:"menheraTheme"`
}

type GadoData

type GadoData struct {
	Image string `json:"image"` // 512
}

type MacetavaData

type MacetavaData struct {
	Image             string `json:"image"` // 512
	AuthorName        string `json:"authorName"`
	AuthorDisplayName string `json:"authorDisplayName"`
	AuthorImage       string `json:"authorImage"` // 128
}

type PhiloData

type PhiloData struct {
	Text string `json:"text"`
}

type PokerHandData

type PokerHandData struct {
	Cards []uint8 `json:"cards"`
	Theme string  `json:"theme"`
}

type PokerTableData

type PokerTableData struct {
	ComunityCards []uint8         `json:"cards"`
	Users         []PokerUserData `json:"users"`
	Pot           int             `json:"pot"`
	Showdown      bool            `json:"showdown"`
}

type PokerUserData

type PokerUserData struct {
	Avatar          string  `json:"avatar"`
	Name            string  `json:"name"`
	CardTheme       string  `json:"cardTheme"`
	BackgroundTheme string  `json:"backgroundTheme"`
	Fold            bool    `json:"fold"`
	Chips           int     `json:"chips"`
	Dealer          bool    `json:"dealer"`
	Seat            uint8   `json:"seat"`
	Cards           []uint8 `json:"cards"`
	Won             bool    `json:"won"`
}

type PreviewData

type PreviewData struct {
	Type  string `json:"type"`
	Theme string `json:"theme"`
}

type ShipData

type ShipData struct {
	LinkOne   string `json:"linkOne"` // 256
	LinkTwo   string `json:"linkTwo"` // 256
	ShipValue uint16 `json:"shipValue"`
}

type TrisalData

type TrisalData struct {
	UserOne   string `json:"userOne"`   // 256
	UserTwo   string `json:"userTwo"`   // 256
	UserThree string `json:"userThree"` // 256
}

type VascoData

type VascoData struct {
	User     string `json:"user"` // 256 normal | low 64
	Username string `json:"username"`
	Quality  string `json:"quality"`
	Position string `json:"position"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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