obj

package
v0.0.0-...-10b6d32 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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 DefaultCampaign(ctype, content, subcontent int64) Campaign

func NewCampaign

func NewCampaign(ctype, content, subcontent, startTime, endTime int64) Campaign

type Chao

type Chao struct {
	ID     string `json:"chaoId"`
	Rarity int64  `json:"rarity"`
	Hidden int64  `json:"hidden"` // this value is required, but is never really used in game... Best to keep at "1"
}

func NewChao

func NewChao(id string, rarity, hidden int64) Chao

type ChaoPrize

type ChaoPrize struct {
	ID     string `json:"chao_id"`
	Rarity int64  `json:"rarity,string"`
}

func NewChaoPrize

func NewChaoPrize(id string, rarity int64) ChaoPrize

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

type ConsumedItem struct {
	Item
	ID string `json:"consumedItemId"`
}

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
}

func NewEvent

func NewEvent(id int64, eventType uint, startTime, endTime, closeTime int64) Event

type Incentive

type Incentive struct {
	Item
	IncentiveCount int64 `json:"numIncentiveCont"`
}

func NewIncentive

func NewIncentive(item Item, count int64) Incentive

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 Item

type Item struct {
	ID     string `json:"itemId"`
	Amount int64  `json:"numItem,string"`
}

func NewItem

func NewItem(iid string, amount int64) Item

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 LineAuth

type LineAuth struct {
	UserID            string `json:"userId"`
	Password          string `json:"password"`
	MigrationPassword string `json:"migrationPassword"`
}

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 Message

type Message struct {
}

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

type OperatorInformation struct {
	ID      int64  `json:"id"`
	Content string `json:"content"`
}

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 Present

type Present struct {
	ItemID          int64 `json:"itemId"`
	NumItem         int64 `json:"numItem"`
	AdditionalInfo1 int64 `json:"additionalInfo1"`
	AdditionalInfo2 int64 `json:"additionalInfo2"`
}

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

type Ticker

type Ticker struct {
	ID    int64  `json:"id"`
	Start int64  `json:"start"`
	End   int64  `json:"end"`
	Param string `json:"param"`
}

func NewTicker

func NewTicker(id, end int64, param string) Ticker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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