Documentation
¶
Index ¶
- Constants
- type Campaign
- type Chao
- type ChaoPrize
- type Character
- type ConsumedItem
- type Event
- 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 RedStarItem
- 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 ¶
This section is empty.
Types ¶
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 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 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 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 string `json:"itemId"`
Amount int64 `json:"numItem"`
AdditionalInfo1 int64 `json:"additionalInfo1"`
AdditionalInfo2 int64 `json:"additionalInfo2"`
}
func NewMessageItem ¶
func NewMessageItem(id string, 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
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 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 SelectReward ¶
type SelectReward struct {
ItemList []Item `json:"itemList"`
}
func NewSelectReward ¶
func NewSelectReward(itemList []Item) SelectReward
Source Files
¶
- campaign.go
- chao.go
- chaoPrize.go
- character.go
- consumedItem.go
- event.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
- redStarItem.go
- requests_generic.go
- selectReward.go
- ticker.go
Click to show internal directories.
Click to hide internal directories.