Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hero ¶
type Hero interface { // Name of the hero Name() string // ID of the hero ID() string // Short description (e.g. class/race/etc) Description() string }
Hero describes a hero (player character).
type HeroChangeAction ¶
type HeroChangeAction int
HeroChangeAction is an enum describing a change in the list of heroes
const ( // HeroAdded describes the action of adding a hero to the list of heroes HeroAdded HeroChangeAction = iota // HeroModified describes the action of modifying a hero's data HeroModified // HeroDeleted describes the action of deleting a hero from the list of heroes HeroDeleted )
Click to show internal directories.
Click to hide internal directories.