Documentation
¶
Overview ¶
Package aoscore score data for ground server
Package aoscore score data for ground server ¶
Package aoscore score data for ground server ¶
Package aoscore score data for ground server
Index ¶
- Constants
- Variables
- type ActiveObjScore
- type ActiveObjScoreList
- func (aol *ActiveObjScoreList) AddOrUpdate(aos *ActiveObjScore)
- func (aol ActiveObjScoreList) GetPage(page int, pagesize int) ActiveObjScoreList
- func (aol *ActiveObjScoreList) LoadJSON(filename string) error
- func (aol ActiveObjScoreList) SaveJSON(filename string) error
- func (aol *ActiveObjScoreList) SortByExp()
- func (aol ActiveObjScoreList) ToWeb(w http.ResponseWriter, r *http.Request) error
- func (aol ActiveObjScoreList) ToWebMid(w http.ResponseWriter, r *http.Request) error
- func (aol *ActiveObjScoreList) TrimLen(l int)
- type ByExp
Constants ¶
View Source
const ( HTML_tableheader = ` <tr> <td>Name</td> <td>Exp</td> <td>Wealth</td> <td>Born</td> <td>Bias</td> <td>Tower</td> <td>Date</td> </tr> ` HTML_row = `` /* 268-byte string literal not displayed */ )
Variables ¶
View Source
var ScoreIDMaker = idu64str.New("ScoreID")
Functions ¶
This section is empty.
Types ¶
type ActiveObjScore ¶
type ActiveObjScore struct { TowerUUID string TowerName string RecordTime time.Time `prettystring:"simple"` UUID string NickName string AchieveStat achievetype_vector_float64.AchieveTypeVector_float64 `prettystring:"simple"` ActionStat c2t_idcmd_stats.CommandIDStat `prettystring:"simple"` Exp float64 Wealth float64 BornFaction factiontype.FactionType CurrentBias bias.Bias `prettystring:"simple"` }
func NewActiveObjScoreByLevel ¶
func NewActiveObjScoreByLevel(lv int, bornFaction factiontype.FactionType, CurrentBias bias.Bias) *ActiveObjScore
NewActiveObjScoreByLevel make dummy data for ground server
type ActiveObjScoreList ¶
type ActiveObjScoreList []*ActiveObjScore
func LoadFromURL ¶
func LoadFromURL(u string) (ActiveObjScoreList, error)
func (*ActiveObjScoreList) AddOrUpdate ¶
func (aol *ActiveObjScoreList) AddOrUpdate(aos *ActiveObjScore)
func (ActiveObjScoreList) GetPage ¶
func (aol ActiveObjScoreList) GetPage(page int, pagesize int) ActiveObjScoreList
func (*ActiveObjScoreList) LoadJSON ¶
func (aol *ActiveObjScoreList) LoadJSON(filename string) error
func (ActiveObjScoreList) SaveJSON ¶
func (aol ActiveObjScoreList) SaveJSON(filename string) error
func (*ActiveObjScoreList) SortByExp ¶
func (aol *ActiveObjScoreList) SortByExp()
func (ActiveObjScoreList) ToWeb ¶
func (aol ActiveObjScoreList) ToWeb(w http.ResponseWriter, r *http.Request) error
func (ActiveObjScoreList) ToWebMid ¶
func (aol ActiveObjScoreList) ToWebMid(w http.ResponseWriter, r *http.Request) error
func (*ActiveObjScoreList) TrimLen ¶
func (aol *ActiveObjScoreList) TrimLen(l int)
Click to show internal directories.
Click to hide internal directories.