Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeMapPoI(link string) (int, error)
- func DecodeOutfit(link string) (int, error)
- func DecodeRecipe(link string) (int, error)
- func DecodeSkill(link string) (int, error)
- func DecodeSkin(link string) (int, error)
- func DecodeTrait(link string) (int, error)
- func DecodeWvWObjective(link string) (int, int, error)
- func EncodeBuildTemplate(data BuildTemplate) string
- func EncodeItem(item Item) string
- func EncodeMapPoI(id int) string
- func EncodeOutfit(id int) string
- func EncodeRecipe(id int) string
- func EncodeSkill(id int) string
- func EncodeSkin(id int) string
- func EncodeTrait(id int) string
- func EncodeWvWObjective(objectiveID, mapID int) string
- type BuildTemplate
- type BuildTemplateSpecialization
- type Item
Constants ¶
const ( BuildTemplateProfessionGuardian = iota + 1 BuildTemplateProfessionWarrior BuildTemplateProfessionEngineer BuildTemplateProfessionRanger BuildTemplateProfessionThief BuildTemplateProfessionElementalist BuildTemplateProfessionMesmer BuildTemplateProfessionNecromancer BuildTemplateProfessionRevenant )
IDs for all professions
const ( RevenantLegendDragonStance = iota + 14 RevenantLegendAssassinStance RevenantLegendDwarfStance RevenantLegendDemonStance RevenantLegendRenegadeStance RevenantLegendCentaurStance )
Revenant Legends
Variables ¶
var (
ErrInvalidHeader = errors.New("Invalid header byte")
)
Error constants
Functions ¶
func DecodeMapPoI ¶
DecodeMapPoI decodes a map poi chatcode and returns the contained id
func DecodeOutfit ¶
DecodeOutfit decodes a chatlink into the contained outfit
func DecodeRecipe ¶
DecodeRecipe decodes a chatlink into the contained recipe
func DecodeSkill ¶
DecodeSkill decodes a skill chatlink into the contained id
func DecodeSkin ¶
DecodeSkin decodes a chatlink into the contained skin
func DecodeTrait ¶
DecodeTrait decodes a chatcode into the contained trait
func DecodeWvWObjective ¶
DecodeWvWObjective decodes a chatlink into the contained wvw objective
func EncodeBuildTemplate ¶ added in v0.2.2
func EncodeBuildTemplate(data BuildTemplate) string
EncodeBuildTemplate encodes a buildtemplate into a chatlink
func EncodeItem ¶
EncodeItem returns the encoded chatlink for that item
func EncodeRecipe ¶
EncodeRecipe encodes a recipe into the chatcode
func EncodeWvWObjective ¶
EncodeWvWObjective encodes a wvw objective into a chatlink
Types ¶
type BuildTemplate ¶ added in v0.2.2
type BuildTemplate struct { Profession uint8 Specializations [3]BuildTemplateSpecialization Skills [5]int AquaticSkills [5]int RangerPets [4]uint8 // Terrestrial Pet 1, Terrestrial Pet 2, Aquatic Pet 1, Aquatic Pet 2 RevenantLegends [4]uint8 // Terrestrial Legend 1, Terrestrial Legend 2, Aquatic Legend 1, Aquatic Legend 2 RevenantInactiveLegendSkills [6]int // Terrestrial Skill 1, 2, 3, Aquatic Skill 1, 2, 3 }
BuildTemplate contains data contained in a buildtemplate chatlink
func DecodeBuildTemplate ¶ added in v0.2.2
func DecodeBuildTemplate(link string) (*BuildTemplate, error)
DecodeBuildTemplate decodes a chatlink into the contained buildtemplate
type BuildTemplateSpecialization ¶ added in v0.2.2
BuildTemplateSpecialization contains information about one traitline