library

package
v0.0.0-...-26b89f5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

library is full of constant data that is referred to everywhere.

Index

Constants

This section is empty.

Variables

View Source
var AllRacesMap = map[int32]string{}/* 680 elements not displayed */

Functions

func ItemTypeStr

func ItemTypeStr(in int32) string

func RaceStr

func RaceStr(in int32) string

func SkillName

func SkillName(id int32) string

Types

type Class

type Class int
const (
	ClassWarrior Class = 1 << iota
	ClassCleric
	ClassPaladin
	ClassRanger
	ClassShadowKnight
	ClassDruid
	ClassMonk
	ClassBard
	ClassRogue
	ClassShaman
	ClassNecromancer
	ClassWizard
	ClassMagician
	ClassEnchanter
	ClassBeastlord
	ClassBerserker
)

func (Class) MarshalJSON

func (c Class) MarshalJSON() ([]byte, error)

func (Class) String

func (c Class) String() string

type Classes

type Classes []Class

func ClassesFromBitmask

func ClassesFromBitmask(mask int32) Classes

func (Classes) MarshalJSON

func (c Classes) MarshalJSON() ([]byte, error)

func (Classes) String

func (c Classes) String() string

type Library

type Library struct {
}

func Instance

func Instance() *Library

type Race

type Race int
const (
	RaceHuman Race = 1 << iota
	RaceBarbarian
	RaceErudite
	RaceWoodElf
	RaceHighElf
	RaceDarkElf
	RaceHalfElf
	RaceDwarf
	RaceTroll
	RaceOgre
	RaceHalfling
	RaceGnome
	RaceIksar
	RaceVahShir
	RaceFroglok
	RaceDrakkin
)

func (Race) MarshalJSON

func (r Race) MarshalJSON() ([]byte, error)

func (Race) String

func (r Race) String() string

type Races

type Races []Race

func RacesFromBitmask

func RacesFromBitmask(mask int32) Races

func (Races) MarshalJSON

func (r Races) MarshalJSON() ([]byte, error)

func (Races) String

func (r Races) String() string

type Slot

type Slot int
const (
	SlotCharm Slot = 1 << iota
	SlotEarL
	SlotHead
	SlotFace
	SlotEarR
	SlotNeck
	SlotShoulders
	SlotArms
	SlotBack
	SlotWristL
	SlotWristR
	SlotRange
	SlotHands
	SlotSecondary
	SlotPrimary
	SlotFingerL
	SlotFingerR
	SlotChest
	SlotLegs
	SlotFeet
	SlotWaist
	SlotAmmo
	SlotPowerSource
)

func (Slot) MarshalJSON

func (s Slot) MarshalJSON() ([]byte, error)

func (Slot) String

func (s Slot) String() string

type Slots

type Slots []Slot

func SlotsFromBitmask

func SlotsFromBitmask(mask int32) Slots

func (Slots) MarshalJSON

func (s Slots) MarshalJSON() ([]byte, error)

func (Slots) String

func (s Slots) String() string

Jump to

Keyboard shortcuts

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