aoscore

package
v0.0.0-...-e449b39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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

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 (ActiveObjScoreList) ToWebMid

func (*ActiveObjScoreList) TrimLen

func (aol *ActiveObjScoreList) TrimLen(l int)

type ByExp

type ByExp []*ActiveObjScore

func (ByExp) Len

func (aoList ByExp) Len() int

func (ByExp) Less

func (aoList ByExp) Less(i, j int) bool

func (ByExp) Sort

func (aoList ByExp) Sort()

func (ByExp) Swap

func (aoList ByExp) Swap(i, j int)

Jump to

Keyboard shortcuts

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