-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmasteries.go
More file actions
25 lines (23 loc) · 788 Bytes
/
masteries.go
File metadata and controls
25 lines (23 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package gw2api
// Mastery contains information about a unlockable mastery
type Mastery struct {
ID int `json:"id"`
Name string `json:"name"`
Requirement string `json:"requirement"`
Order int `json:"order"`
Background string `json:"background"`
Region string `json:"region"`
Levels []struct {
Name string `json:"name"`
Description string `json:"description"`
Instruction string `json:"instruction"`
Icon string `json:"icon"`
PointCost int `json:"point_cost"`
ExpCost int `json:"exp_cost"`
} `json:"levels"`
}
// Masteries returns all trainable masteries
func (s *Session) Masteries(ids ...int) (rsp []*Mastery, err error) {
err = s.get(concatStrings("/v2/masteries", genArgs(ids...)), &rsp)
return
}