Documentation ¶
Overview ¶
Nook exports basic information for characters that appear in the video game series Animal Crossing.
Specifically this package centers on the organisation and classification of residents versus villagers, as well as defining the common attributes between them.
Residents in the context of this package are Animal Crossing characters that cannot be invited as home owners within the players town, city, or island. Residents perform a special role within the world and often are quest givers. An example of a Resident would be Isabelle, Tom Nook or Guliver.
Villagers are Animal Crossing characters that can be invited to stay in the players town, city or island, and make up the larger world population. Characters such as Alfonso, Tabby and Eggbert are all examples of Villagers. Villagers can be given gifts, have personalities and homes.
This package separates and organises Animal Crossing characters by their animal type. This is a requirement due to the large number of characters there are in the series, and that some characters overlap with other components in name. An example of this is the name Petunia, who is both a Cow and a Rhinoceros. Another example is Snooty, which is the name of one of the wolves and a personality type.
The information for this package has largely been sourced from various Wiki pages across the internet.
All contributions and corrections are welcome and encouraged.
Index ¶
- type Animal
- type Birthday
- type Character
- type Code
- type Gender
- type Key
- type Languages
- func (v Languages) Add(name Name)
- func (v Languages) Del(key language.Tag) bool
- func (v Languages) Each(fn func(language.Tag, Name))
- func (v Languages) EachWithBreak(fn func(language.Tag, Name) bool)
- func (v Languages) Get(key language.Tag) (Name, bool)
- func (v Languages) Has(key language.Tag) bool
- func (v Languages) Must(key language.Tag) Name
- type Name
- type Personality
- type Resident
- type Residents
- func (v Residents) Add(resident Resident)
- func (v Residents) Del(key Key) bool
- func (v Residents) Each(fn func(Key, Resident))
- func (v Residents) EachWithBreak(fn func(Key, Resident) bool)
- func (v Residents) Get(key Key) (Resident, bool)
- func (v Residents) Has(key Key) bool
- func (v Residents) Must(key Key) Resident
- type Villager
- type Villagers
- func (v Villagers) Add(villager Villager)
- func (v Villagers) Del(key Key) bool
- func (v Villagers) Each(fn func(Key, Villager))
- func (v Villagers) EachWithBreak(fn func(Key, Villager) bool)
- func (v Villagers) Get(key Key) (Villager, bool)
- func (v Villagers) Has(key Key) bool
- func (v Villagers) Must(key Key) Villager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animal ¶
type Animal struct {
Name Languages
}
Animal is the animal type of an Animal Crossing character.
type Character ¶
Character is a representation of the common attributes for Animal Crossing characters.
type Code ¶
type Code struct {
Value string
}
Code is the unique identifier assigned to an Animal Crossing character. Codes are based on the data mined from the various Animal Crossing games.
type Gender ¶
type Gender struct {
Name Languages
}
Gender is the biological gender given to an Animal Crossing character.
type Languages ¶
Languages is a collection of language information.
func (Languages) Add ¶
Add adds a Name to the collection. Add uses Name.Language as the key to be retrieved from the Languages.
func (Languages) Each ¶
Each performs a for-each loop across Languages, executing the argument function for the Name at the current key.
func (Languages) EachWithBreak ¶
Each performs a for-each loop across Languages, executing the argument function for the Name at the current key. Unlike Languages.Each it is possible to break out of the loop by returning true as a callback.
func (Languages) Get ¶
Get returns a Name from Languages using the argument key. Returns an additional boolean indicating whether the Name was found.
type Personality ¶
type Personality struct {
Name Languages
}
Personality is an Animal Crossing character personality type.
type Resident ¶
type Resident struct {
Character
}
Resident is the representation of an Animal Crossing character that performs special roles within the players town, city or island. Characters that are Residents cannot be invited to live within the players world, but inhabit the world indirectly. Residents and are often merchants, administrators or quest givers. Examples of characters that are residents are Tom Nook the raccoon, Isabelle the dog or Gulliver the seagull.
type Residents ¶
Residents is a collection of Resident.
func (Residents) Each ¶
Each performs a for-each loop across Residents, executing the argument function for the Resident at the current key.
func (Residents) EachWithBreak ¶
Each performs a for-each loop across Residents, executing the argument function for the Resident at the current key. Unlike Residents.Each it is possible to break out of the loop by returning true.
func (Residents) Get ¶
Get returns a Resident from Residents using the argument key. Returns an additional boolean indicating whether the Resident was found.
type Villager ¶
type Villager struct { Character Personality Personality Phrase Languages }
Villager is the representation of an Animal Crossing character that can be invited to live within the players town, city or island. Characters that are Villagers can be home owners and befriend the player. The player can exchange gifts and decorations with any Villager character. All Villagers have personalities and unique phrases that accompany them. Examples of characters that are villagers are Tabby the cat, Snooty the wolf and Alfonso the alligator.
type Villagers ¶
Villagers is a collection of Villager.
func (Villagers) Each ¶
Each performs a for-each loop across Villagers, executing the argument function for the Villager at the current key.
func (Villagers) EachWithBreak ¶
Each performs a for-each loop across Villagers, executing the argument function for the Villager at the current key. Unlike Villagers.Each it is possible to break out of the loop by returning true.
func (Villagers) Get ¶
Get returns a Villager from Villagers using the argument key. Returns an additional boolean indicating whether the Villager was found.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package animal exports the various types of animals found in the Animal Crossing series.
|
Package animal exports the various types of animals found in the Animal Crossing series. |
Package character exports the key values for Animal Crossing characters.
|
Package character exports the key values for Animal Crossing characters. |
Package gender exports the various genders of characters found in the Animal Crossing series.
|
Package gender exports the various genders of characters found in the Animal Crossing series. |
Package personality exports the various personality types of villagers found in the Animal Crossing series.
|
Package personality exports the various personality types of villagers found in the Animal Crossing series. |