Documentation ¶
Index ¶
- func Scale() float64
- type Game
- func (g *Game) RespondAsset(id int, success bool, data []byte)
- func (g *Game) RespondChangeLanguage(id int)
- func (g *Game) RespondInterstitialAds(id int, success bool)
- func (g *Game) RespondOpenLink(id int)
- func (g *Game) RespondPurchase(id int, success bool, purchases []uint8)
- func (g *Game) RespondRestorePurchases(id int, success bool, purchases []uint8)
- func (g *Game) RespondRewardedAds(id int, success bool)
- func (g *Game) RespondSavePermanent(id int)
- func (g *Game) RespondSaveProgress(id int)
- func (g *Game) RespondShareImage(id int)
- func (g *Game) RespondShowShop(id int, success bool, purchases []uint8)
- func (g *Game) RespondUnlockAchievement(id int)
- func (g *Game) SetPlatformData(key scene.PlatformDataKey, value string)
- func (g *Game) SetScreenSize(width, height int, scale float64)
- func (g *Game) Update(screen *ebiten.Image) error
- type Requester
- func (m *Requester) RequestAsset(requestID int, key string)
- func (m *Requester) RequestChangeLanguage(requestID int, lang string)
- func (m *Requester) RequestInterstitialAds(requestID int, forceAds bool)
- func (m *Requester) RequestMarkNewsRead(newsId int64)
- func (m *Requester) RequestOpenLink(requestID int, linkType string, data string)
- func (m *Requester) RequestPurchase(requestID int, productID string)
- func (m *Requester) RequestRestorePurchases(requestID int)
- func (m *Requester) RequestReview()
- func (m *Requester) RequestRewardedAds(requestID int, forceAds bool)
- func (m *Requester) RequestSavePermanent(requestID int, data []byte)
- func (m *Requester) RequestSaveProgress(requestID int, data []uint8)
- func (m *Requester) RequestSendAnalytics(eventName string, value string)
- func (m *Requester) RequestShareImage(requestID int, title string, message string, image []byte)
- func (m *Requester) RequestShowShop(requestID int, data string)
- func (m *Requester) RequestTerminateGame()
- func (m *Requester) RequestUnlockAchievement(requestID int, achievementID int)
- func (m *Requester) RequestVibration(t string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func NewWithDefaultRequester ¶
func (*Game) RespondChangeLanguage ¶
func (*Game) RespondInterstitialAds ¶
func (*Game) RespondOpenLink ¶
func (*Game) RespondPurchase ¶
func (*Game) RespondRestorePurchases ¶
func (*Game) RespondRewardedAds ¶
func (*Game) RespondSavePermanent ¶
func (*Game) RespondSaveProgress ¶
func (*Game) RespondShareImage ¶
func (*Game) RespondShowShop ¶
func (*Game) RespondUnlockAchievement ¶
func (*Game) SetPlatformData ¶
func (g *Game) SetPlatformData(key scene.PlatformDataKey, value string)
func (*Game) SetScreenSize ¶
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func (*Requester) RequestAsset ¶
func (*Requester) RequestChangeLanguage ¶
func (*Requester) RequestInterstitialAds ¶
func (*Requester) RequestMarkNewsRead ¶
func (*Requester) RequestOpenLink ¶
func (*Requester) RequestPurchase ¶
func (*Requester) RequestRestorePurchases ¶
func (*Requester) RequestReview ¶
func (m *Requester) RequestReview()
func (*Requester) RequestRewardedAds ¶
func (*Requester) RequestSavePermanent ¶
func (*Requester) RequestSaveProgress ¶
func (*Requester) RequestSendAnalytics ¶
func (*Requester) RequestShareImage ¶
func (*Requester) RequestShowShop ¶
func (*Requester) RequestTerminateGame ¶
func (m *Requester) RequestTerminateGame()
func (*Requester) RequestUnlockAchievement ¶
func (*Requester) RequestVibration ¶
Click to show internal directories.
Click to hide internal directories.