Documentation ¶
Index ¶
- Constants
- func IsCampaignActive(campaign Campaign) bool
- type BattleData
- type BattlePair
- type BattleStatus
- type Campaign
- type Chao
- type ChaoPrize
- type Character
- type ConsumedItem
- type CostItem
- type Event
- type EventReward
- type Incentive
- type Information
- type Item
- type LeaderboardEntry
- type LeagueData
- type LineAuth
- type LoginBonusReward
- type LoginBonusStatus
- type MapInfo
- type Message
- type MessageItem
- type MileageIncentive
- type MileageReward
- type OperatorInformation
- type OperatorMessage
- type OperatorScore
- type Present
- type RaidbossPrize
- type RaidbossUserState
- type RedStarItem
- type RewardBattlePair
- type SelectReward
- type Ticker
Constants ¶
View Source
const ( DefaultMapDistance = 0 DefaultNumBossAttack = 0 // Boss HP gets subtracted by this number, for some reason. DefaultStageDistance = 1337000 DefaultStageMaxScore = 8008135 )
Variables ¶
This section is empty.
Functions ¶
func IsCampaignActive ¶
Types ¶
type BattleData ¶
type BattleData struct { UserID string `json:"userId"` // user ID Name string `json:"name"` // username MaxScore int64 `json:"maxScore"` // highest score gained League int64 `json:"league"` // enums.RankingLeague* LoginTime int64 `json:"loginTime"` // used by game in ranking window with GetCurrentTime() - loginTime MainChaoID string `json:"mainChaoId"` // TODO: if this struct is a problem for the game, the game actually only expects the first two strings to be real strings; these are ints MainChaoLevel int64 `json:"mainChaoLevel"` SubChaoID string `json:"subChaoId"` SubChaoLevel int64 `json:"subChaoLevel"` Rank int64 `json:"numRank"` // left justified by '0's in the game; unknown what it's sourced from MainCharaID string `json:"charaId"` MainCharaLevel int64 `json:"charaLevel"` SubCharaID string `json:"subCharaId"` SubCharaLevel int64 `json:"subCharaLevel"` GoOnWin int64 `json:"goOnWin"` // Win streak IsSentEnergy int64 `json:"energyFlg"` // you can't send energy to friend if true (is only friend if social connection); enables custom icon Language int64 `json:"language"` // enums.Lang* }
func DebugRivalBattleData ¶
func DebugRivalBattleData() BattleData
type BattlePair ¶
type BattlePair struct { StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` BattleData BattleData `json:"battleData"` RivalBattleData BattleData `json:"rivalBattleData"` }
func NewBattlePair ¶
func NewBattlePair(startTime, endTime int64, battleData, rivalBattleData BattleData) BattlePair
type BattleStatus ¶
type BattleStatus struct { Wins int64 `json:"numWin"` // battle wins Losses int64 `json:"numLose"` // battle losses Draws int64 `json:"numDraw"` // battle draws LossesByDefault int64 `json:"numLoseByDefault"` // battle failures GoOnWins int64 `json:"goOnWin"` // battle win streak GoOnLosses int64 `json:"goOnLosses"` // battle loss streak??? }
func DefaultBattleStatus ¶
func DefaultBattleStatus() BattleStatus
type Campaign ¶
type Campaign struct { Type int64 `json:"campaignType"` Content int64 `json:"campaignContent"` SubContent int64 `json:"campaignSubContent"` StartTime int64 `json:"campaignStartTime"` EndTime int64 `json:"campaignEndTime"` }
func DefaultCampaign ¶
func DefaultCampaigns ¶
func DefaultCampaigns() []Campaign
func NewCampaign ¶
type Chao ¶
type ChaoPrize ¶
func NewChaoPrize ¶
type Character ¶
type Character struct { ID string `json:"characterId"` Cost int64 `json:"numRings"` // interestingly, is used for both buying the character and for levelling up... NumRedRings int64 `json:"numRedRings"` // ? Price int64 `json:"priceNumRings"` // used to limit break, as far as I can tell? PriceRedRings int64 `json:"priceNumRedRings"` // ? }
type ConsumedItem ¶
func NewConsumedItem ¶
func NewConsumedItem(item Item, id string) ConsumedItem
type CostItem ¶
type CostItem struct { ID string `json:"itemId"` Amount int64 `json:"numItem,string"` ItemStock int64 `json:"itemStock"` }
func NewCostItem ¶
type Event ¶
type Event struct { ID int64 `json:"eventId"` // used to get the type... For some reason... Type int64 `json:"eventType"` // Dead code in game but still must be satisfied StartTime int64 `json:"eventStartTime"` // UTC time EndTime int64 `json:"eventEndTime"` // UTC time CloseTime int64 `json:"eventCloseTime"` // UTC time }
type EventReward ¶
type EventReward struct { RewardID int64 `json:"rewardId"` Param int64 `json:"param"` ItemID string `json:"itemId"` NumItem int64 `json:"numItem"` }
func NewEventReward ¶
func NewEventReward(rewardId, param int64, itemId string, numItem int64) EventReward
type Incentive ¶
func NewIncentive ¶
type Information ¶
type Information struct { ID int64 `json:"id"` Priority int64 `json:"priority"` Start int64 `json:"start"` End int64 `json:"end"` Param string `json:"param"` }
func NewInformation ¶
func NewInformation(id, priority, start, end int64, param string) Information
type LeaderboardEntry ¶
type LeaderboardEntry struct { FriendID string `json:"friendId"` Name string `json:"name"` URL string `json:"url"` Grade int64 `json:"grade"` ExposeOnline int64 `json:"exposeOnline"` // TODO: remove this, apparently it's not used RankingScore int64 `json:"rankingScore"` RankChanged int64 `json:"rankChanged"` // TODO: potentially remove this, doesn't seem to be used IsSentEnergy int64 `json:"energyFlg"` ExpireTime int64 `json:"expireTime"` // TODO: doesn't seem to be used NumRank int64 `json:"numRank"` // left adjusted with '0's to match length 3; unknown of use, called internally 'mapRank' LoginTime int64 `json:"loginTime"` CharacterID string `json:"charaId"` CharacterLevel int64 `json:"characterLevel"` SubcharacterID string `json:"subCharaId"` SubcharacterLevel int64 `json:"subCharaLevel"` MainChaoID string `json:"mainChaoId"` MainChaoLevel int64 `json:"mainChaoLevel"` SubChaoID string `json:"subChaoId"` SubChaoLevel int64 `json:"subChaoLevel"` Language int64 `json:"language"` // enums.Lang* League int64 `json:"league"` MaxScore int64 `json:"maxScore"` }
func DefaultLeaderboardEntry ¶
func DefaultLeaderboardEntry(uid string) LeaderboardEntry
func NewLeaderboardEntry ¶
func NewLeaderboardEntry(fid, n, url string, g, eo, rs, rc, ise, et, nr, lt, cid, cl, schid, schl, mcid, mcl, scid, scl, lang, league, maxScore int64) LeaderboardEntry
type LeagueData ¶
type LeagueData struct { LeagueID int64 `json:"leagueId,string"` GroupID int64 `json:"groupId,string"` NumUp int64 `json:"numUp,string"` NumDown int64 `json:"numDown,string"` NumGroupMember int64 `json:"numGroupMember,string"` HighScoreOperator []OperatorScore `json:"highScoreOpe"` // what is this used for? TotalScoreOperator []OperatorScore `json:"totalScoreOpe"` // ^^^^^^^^^^^^^^^^^^^^ }
func NewLeagueData ¶
func NewLeagueData(lid, gid, nup, ndown, ngm int64, hso, tso []OperatorScore) LeagueData
type LoginBonusReward ¶
type LoginBonusReward struct {
SelectRewardList []SelectReward `json:"selectRewardList"`
}
func NewLoginBonusReward ¶
func NewLoginBonusReward(selectRewardList []SelectReward) LoginBonusReward
type LoginBonusStatus ¶
type LoginBonusStatus struct { NumLogin int64 `json:"numLogin"` // how many logins NumBonus int64 `json:"numBonus"` // how many bonuses? LastBonusTime int64 `json:"lastBonusTime"` // last time gotten a bonus (last login, essentially) }
func NewLoginBonusStatus ¶
func NewLoginBonusStatus(numLogin, numBonus, lastBonusTime int64) LoginBonusStatus
type MapInfo ¶
type MapInfo struct { MapDistance int64 `json:"mapDistance"` // used sparingly in game...? NumBossAttack int64 `json:"numBossAttack"` // TODO: number of boss fights? Check how often this is used in game StageDistance int64 `json:"stageDistance"` // TODO: discover use StageMaxScore int64 `json:"stageMaxScore"` // TODO: discover use }
func DefaultMapInfo ¶
func DefaultMapInfo() MapInfo
type MessageItem ¶
type MessageItem struct { ID int64 `json:"itemId,string"` Amount int64 `json:"numItem"` AdditionalInfo1 int64 `json:"additionalInfo1"` AdditionalInfo2 int64 `json:"additionalInfo2"` }
func NewMessageItem ¶
func NewMessageItem(id, amount, ai1, ai2 int64) MessageItem
type MileageIncentive ¶
type MileageIncentive struct { Type int64 `json:"type"` ItemID string `json:"itemId"` FriendID string `json:"friendId,omitempty"` NumItem int64 `json:"numItem"` PointID int64 `json:"pointId"` }
func DefaultMileageIncentive ¶
func DefaultMileageIncentive() MileageIncentive
type MileageReward ¶
type MileageReward struct { Type int64 `json:"type"` // never used in game? ItemID string `json:"itemId"` // TODO: integrate obj.Item as field instead of itemId and numItem? NumItem int64 `json:"numItem"` Point int64 `json:"point"` LimitTime int64 `json:"limitTime"` // timespan (sec.) }
func DefaultMileageReward ¶
func DefaultMileageReward(point int64) MileageReward
func NewMileageReward ¶
func NewMileageReward(itype, itemID, numItem, point int64) MileageReward
type OperatorInformation ¶
func NewOperatorInformation ¶
func NewOperatorInformation(id int64, content string) OperatorInformation
type OperatorMessage ¶
type OperatorMessage struct { ID string `json:"messageId"` Content string `json:"contents"` Item MessageItem `json:"item"` ExpireTime int64 `json:"expireTime"` }
func DefaultOperatorMessage ¶
func DefaultOperatorMessage() OperatorMessage
func NewOperatorMessage ¶
func NewOperatorMessage(id int64, content string, item MessageItem, expiresAfter int64) OperatorMessage
type OperatorScore ¶
type OperatorScore struct { Operator int64 `json:"operator,string"` Number int64 `json:"number,string"` PresentList []Item `json:"presentList,string"` }
func NewOperatorScore ¶
func NewOperatorScore(operator, number int64, presentList []Item) OperatorScore
type Present ¶
type Present struct { ItemID int64 `json:"itemId"` NumItem int64 `json:"numItem"` AdditionalInfo1 int64 `json:"additionalInfo1"` AdditionalInfo2 int64 `json:"additionalInfo2"` }
func MessageItemToPresent ¶
func MessageItemToPresent(item MessageItem) Present
func NewPresent ¶
type RaidbossPrize ¶
type RaidbossPrize struct { ItemID string `json:"itemId"` NumItem int64 `json:"numItem,string"` ItemWeight int64 `json:"itemRate,string"` SpinID int64 `json:"spinId,string"` }
func NewRaidbossPrize ¶
func NewRaidbossPrize(id string, numitem, weight, spinid int64) RaidbossPrize
type RaidbossUserState ¶
type RaidbossUserState struct { WrestleID string `json:"friendId"` Name string `json:"name"` Grade int64 `json:"grade"` NumRank int64 `json:"numRank"` LoginTime int64 `json:"loginTime"` CharacterID string `json:"charaId"` CharacterLevel int64 `json:"characterLevel"` SubcharacterID string `json:"subCharaId"` SubcharacterLevel int64 `json:"subCharaLevel"` MainChaoID string `json:"mainChaoId"` MainChaoLevel int64 `json:"mainChaoLevel"` SubChaoID string `json:"subChaoId"` SubChaoLevel int64 `json:"subChaoLevel"` Language int64 `json:"language"` // enums.Lang* League int64 `json:"league"` WrestleCount int64 `json:"wrestleCount"` WrestleDamage int64 `json:"wrestleDamage"` WrestleBeatFlg int64 `json:"wrestleBeatFlg"` }
func DefaultRaidbossUserState ¶
func DefaultRaidbossUserState(uid string) RaidbossUserState
func NewRaidbossUserState ¶
func NewRaidbossUserState(wid, n string, g, nr, lt, cid, cl, schid, schl, mcid, mcl, scid, scl, lang, league, wc, wd, wbf int64) RaidbossUserState
type RedStarItem ¶
type RedStarItem struct { StoreItemID string `json:"storeItemId"` ItemID string `json:"itemId"` PriceDisp string `json:"priceDisp"` ProductID string `json:"productId"` NumItem int64 `json:"numItem"` Price int64 `json:"price"` Campaign *Campaign `json:"campaign"` // use nil to remove campaign. But does this make the game freak out...? }
func NewRedStarItem ¶
func NewRedStarItem(storeItemId, itemId, priceDisp, productID string, numItem, price int64, campaign *Campaign) RedStarItem
type RewardBattlePair ¶
type RewardBattlePair struct { StartTime int64 `json:"rewardStartTime"` EndTime int64 `json:"rewardEndTime"` BattleData BattleData `json:"rewardBattleData"` RivalBattleData BattleData `json:"rewardRivalBattleData"` }
func NewRewardBattlePair ¶
func NewRewardBattlePair(startTime, endTime int64, battleData, rivalBattleData BattleData) RewardBattlePair
type SelectReward ¶
type SelectReward struct {
ItemList []Item `json:"itemList"`
}
func NewSelectReward ¶
func NewSelectReward(itemList []Item) SelectReward
Source Files ¶
- battleData.go
- battlePair.go
- battleStatus.go
- campaign.go
- chao.go
- chaoPrize.go
- character.go
- consumedItem.go
- costItem.go
- event.go
- eventReward.go
- incentive.go
- information.go
- item.go
- leaderboardEntry.go
- leagueData.go
- loginBonusReward.go
- loginBonusStatus.go
- mapInfo.go
- message.go
- messageItem.go
- mileageIncentive.go
- mileageReward.go
- operatorInformation.go
- operatorMessage.go
- operatorScore.go
- present.go
- raidbossPrize.go
- raidbossUser.go
- redStarItem.go
- requests_generic.go
- selectReward.go
- ticker.go
Click to show internal directories.
Click to hide internal directories.