Documentation ¶
Index ¶
- type Manager
- func (m *Manager) BGMVolume() int
- func (m *Manager) BottomOffset() int
- func (m *Manager) Credits() *data.Credits
- func (m *Manager) Draw(screen *ebiten.Image) error
- func (m *Manager) DynamicShopData(products []int) []byte
- func (m *Manager) Game() *data.Game
- func (m *Manager) GenerateRequestID() int
- func (m *Manager) GoTo(next Scene)
- func (m *Manager) GoToWithFading(next Scene, fadingOutCount, fadingInCount int)
- func (m *Manager) HasExtraBottomGrid() bool
- func (m *Manager) HasProgress() bool
- func (m *Manager) InitScene(scene Scene)
- func (m *Manager) InterstitialAdsLoaded() bool
- func (m *Manager) IsAdsRemoved() bool
- func (m *Manager) IsAvailable(id int) bool
- func (m *Manager) IsPurchased(key string) bool
- func (m *Manager) IsUnlocked(id int) bool
- func (m *Manager) PermanentMinigame(id int) *MinigameData
- func (m *Manager) PermanentVariableValue(id int) int64
- func (m *Manager) Price(key string) string
- func (m *Manager) Progress() []byte
- func (m *Manager) ReceiveResultIfExists(id int) *RequestResult
- func (m *Manager) RequestRewardedAds(requestID int, forceAds bool)
- func (m *Manager) RequestSavePermanentMinigame(requestID int, minigameID, score int, lastActiveAt int64)
- func (m *Manager) RequestSavePermanentVariable(requestID int, permanentVariableID int, value int64)
- func (m *Manager) RequestSaveVibrationEnabled(requestID int, vibrationEnabled bool)
- func (m *Manager) RequestSaveVolume(requestID int, seVolume int, bgmVolume int)
- func (m *Manager) Requester() Requester
- func (m *Manager) ResetPseudoScreen()
- func (m *Manager) RespondAsset(id int, success bool, data []byte)
- func (m *Manager) RespondChangeLanguage(id int)
- func (m *Manager) RespondInterstitialAds(id int, success bool)
- func (m *Manager) RespondOpenLink(id int)
- func (m *Manager) RespondPurchase(id int, success bool, purchases []byte)
- func (m *Manager) RespondRestorePurchases(id int, success bool, purchases []byte)
- func (m *Manager) RespondRewardedAds(id int, success bool)
- func (m *Manager) RespondSavePermanent(id int)
- func (m *Manager) RespondSaveProgress(id int)
- func (m *Manager) RespondShareImage(id int)
- func (m *Manager) RespondShowShop(id int, success bool, purchases []byte)
- func (m *Manager) RespondUnlockAchievement(id int)
- func (m *Manager) RewardedAdsLoaded() bool
- func (m *Manager) SEVolume() int
- func (m *Manager) SetLanguage(language language.Tag) language.Tag
- func (m *Manager) SetPlatformData(key PlatformDataKey, value string)
- func (m *Manager) SetProgress(progress []byte)
- func (m *Manager) SetPseudoScreen(screen *ebiten.Image)
- func (m *Manager) SetScreenSize(width, height int)
- func (m *Manager) ShareScreenshot()
- func (m *Manager) ShopData(name data.ShopType, tabs []bool) []byte
- func (m *Manager) Size() (int, int)
- func (m *Manager) SponsorTier() int
- func (m *Manager) Update() error
- func (m *Manager) VibrationEnabled() bool
- type MinigameData
- type Permanent
- type PlatformDataKey
- type RequestResult
- type RequestType
- type Requester
- type Scene
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) BottomOffset ¶
func (*Manager) DynamicShopData ¶
func (*Manager) GenerateRequestID ¶
func (*Manager) GoToWithFading ¶
func (*Manager) HasExtraBottomGrid ¶
func (*Manager) HasProgress ¶
func (*Manager) InterstitialAdsLoaded ¶
func (*Manager) IsAdsRemoved ¶
func (*Manager) IsAvailable ¶
func (*Manager) IsPurchased ¶
func (*Manager) IsUnlocked ¶
func (*Manager) PermanentMinigame ¶
func (m *Manager) PermanentMinigame(id int) *MinigameData
func (*Manager) PermanentVariableValue ¶
func (*Manager) ReceiveResultIfExists ¶
func (m *Manager) ReceiveResultIfExists(id int) *RequestResult
func (*Manager) RequestRewardedAds ¶
func (*Manager) RequestSavePermanentMinigame ¶
func (*Manager) RequestSavePermanentVariable ¶
func (*Manager) RequestSaveVibrationEnabled ¶
func (*Manager) RequestSaveVolume ¶
func (*Manager) ResetPseudoScreen ¶
func (m *Manager) ResetPseudoScreen()
func (*Manager) RespondChangeLanguage ¶
func (*Manager) RespondInterstitialAds ¶
func (*Manager) RespondOpenLink ¶
func (*Manager) RespondPurchase ¶
func (*Manager) RespondRestorePurchases ¶
func (*Manager) RespondRewardedAds ¶
func (*Manager) RespondSavePermanent ¶
func (*Manager) RespondSaveProgress ¶
func (*Manager) RespondShareImage ¶
func (*Manager) RespondShowShop ¶
func (*Manager) RespondUnlockAchievement ¶
func (*Manager) RewardedAdsLoaded ¶
func (*Manager) SetPlatformData ¶
func (m *Manager) SetPlatformData(key PlatformDataKey, value string)
func (*Manager) SetProgress ¶
func (*Manager) SetPseudoScreen ¶
func (*Manager) SetScreenSize ¶
func (*Manager) ShareScreenshot ¶
func (m *Manager) ShareScreenshot()
func (*Manager) SponsorTier ¶
func (*Manager) VibrationEnabled ¶
type MinigameData ¶
type Permanent ¶
type Permanent struct { Minigames []*MinigameData `msgpack:"minigame"` Variables []int64 `msgpack:"variables"` BGMMute int `msgpack:"bgm_mute"` SEMute int `msgpack:"se_mute"` VibrationDisabled bool `msgpack:"vibrationDisabled"` }
type PlatformDataKey ¶
type PlatformDataKey string
const ( PlatformDataKeyInterstitialAdsLoaded PlatformDataKey = "interstitial_ads_loaded" PlatformDataKeyRewardedAdsLoaded PlatformDataKey = "rewarded_ads_loaded" PlatformDataKeyBackButton PlatformDataKey = "backbutton" PlatformDataKeyCredits PlatformDataKey = "credits" PlatformDataKeyPrices PlatformDataKey = "prices" PlatformDataKeyNews PlatformDataKey = "news" PlatformDataKeyPopupNewsID PlatformDataKey = "popup_news_id" )
type RequestResult ¶
type RequestResult struct { ID int Type RequestType Succeeded bool Data []byte }
type RequestType ¶
type RequestType int
const ( RequestTypeUnlockAchievement RequestType = iota RequestTypeSaveProgress RequestTypeSavePermanent RequestTypePurchase RequestTypeShowShop RequestTypeRestorePurchases RequestTypeInterstitialAds RequestTypeRewardedAds RequestTypeOpenLink RequestTypeChangeLanguage RequestTypeAsset )
type Requester ¶
type Requester interface { RequestUnlockAchievement(requestID int, achievementID int) RequestSaveProgress(requestID int, data []byte) RequestSavePermanent(requestID int, data []byte) RequestPurchase(requestID int, productID string) RequestShowShop(requestID int, data string) RequestRestorePurchases(requestID int) RequestInterstitialAds(requestID int, forceAds bool) RequestRewardedAds(requestID int, forceAds bool) RequestOpenLink(requestID int, linkType string, data string) RequestTerminateGame() RequestChangeLanguage(requestID int, lang string) RequestReview() RequestSendAnalytics(eventName string, value string) RequestVibration(vibrationType string) RequestAsset(requestID int, key string) RequestMarkNewsRead(newsID int64) }
Click to show internal directories.
Click to hide internal directories.