2023-12-15 07:16:51 +00:00
|
|
|
package tw
|
|
|
|
|
|
|
|
import (
|
2023-12-27 08:07:40 +00:00
|
|
|
"net/url"
|
2023-12-15 07:16:51 +00:00
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Server struct {
|
|
|
|
Key string
|
2023-12-27 08:07:40 +00:00
|
|
|
URL *url.URL
|
2023-12-15 07:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type OpponentsDefeated struct {
|
|
|
|
RankAtt int
|
|
|
|
ScoreAtt int
|
|
|
|
RankDef int
|
|
|
|
ScoreDef int
|
|
|
|
RankSup int
|
|
|
|
ScoreSup int
|
|
|
|
RankTotal int
|
|
|
|
ScoreTotal int
|
|
|
|
}
|
|
|
|
|
|
|
|
type Tribe struct {
|
|
|
|
OpponentsDefeated
|
|
|
|
|
|
|
|
ID int
|
|
|
|
Name string
|
|
|
|
Tag string
|
|
|
|
NumMembers int
|
|
|
|
NumVillages int
|
|
|
|
Points int
|
|
|
|
AllPoints int
|
|
|
|
Rank int
|
2023-12-27 08:07:40 +00:00
|
|
|
ProfileURL *url.URL
|
2023-12-15 07:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Player struct {
|
|
|
|
OpponentsDefeated
|
|
|
|
|
|
|
|
ID int
|
|
|
|
Name string
|
|
|
|
NumVillages int
|
|
|
|
Points int
|
|
|
|
Rank int
|
|
|
|
TribeID int
|
2023-12-27 08:07:40 +00:00
|
|
|
ProfileURL *url.URL
|
2023-12-15 07:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Village struct {
|
|
|
|
ID int
|
|
|
|
Name string
|
|
|
|
Points int
|
|
|
|
X int
|
|
|
|
Y int
|
|
|
|
Continent string
|
|
|
|
Bonus int
|
|
|
|
PlayerID int
|
2023-12-27 08:07:40 +00:00
|
|
|
ProfileURL *url.URL
|
2023-12-15 07:16:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Ennoblement struct {
|
|
|
|
VillageID int
|
|
|
|
NewOwnerID int
|
|
|
|
NewTribeID int
|
|
|
|
OldOwnerID int
|
|
|
|
OldTribeID int
|
|
|
|
Points int
|
|
|
|
CreatedAt time.Time
|
|
|
|
}
|