Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRace ¶ added in v0.9.8
DeleteRace removes a race from disk and the in-memory cache.
func GetMemoryUsage ¶ added in v0.9.8
func GetMemoryUsage() map[string]util.MemoryResult
func GetRacesMap ¶ added in v0.9.8
GetRacesMap returns a copy of all loaded races keyed by RaceId.
Types ¶
type Race ¶
type Race struct {
RaceId int
Name string
Description string
DefaultAlignment int8
BuffIds []int // Permabuffs this race always has
Size Size
TNLScale float32
UnarmedName string
Tameable bool
Damage items.Damage
Selectable bool
AngryCommands []string // randomly chosen to queue when they are angry/entering combat.
KnowsFirstAid bool // Whether they can apply aid to other players.
Stats stats.Statistics // Base stats for this race.
DisabledSlots []string `yaml:"disabledslots,omitempty"`
}
func (Race) GetEnabledSlots ¶
Click to show internal directories.
Click to hide internal directories.