Documentation ¶
Index ¶
- type Inventory
- func (i *Inventory) AddItem(item Item)
- func (i *Inventory) AddKeyItem(keyItem KeyItem)
- func (i *Inventory) AddMaterial(name string, amount int)
- func (i *Inventory) GetItems() []Item
- func (i *Inventory) GetKeyItems() []KeyItem
- func (i *Inventory) GetKeyItemsByType(typeOfKeyItemRequired string) []KeyItem
- func (i *Inventory) GetMaterials() map[string]int
- func (i *Inventory) InitMaterials()
- func (i *Inventory) RemoveAllItemWithName(name string) []map[string]RawMaterial
- func (i *Inventory) RemoveMaterial(name string, amount int)
- func (i *Inventory) RemoveOneItemWithName(name string) map[string]RawMaterial
- func (i *Inventory) ResetMaterials()
- func (i *Inventory) SalvageAllItems(name string)
- func (i *Inventory) SalvageOneItem(name string)
- type Item
- func (i *Item) AddModifier(name string, amount float64)
- func (i *Item) AddRawMaterial(name string, min, max int)
- func (i *Item) GetDepth() float64
- func (i *Item) GetMaterials() map[string]RawMaterial
- func (i *Item) GetName() string
- func (i *Item) GetRarity() float64
- func (i *Item) GetRarityScale() float64
- func (i *Item) Init()
- func (i *Item) SetDepth(depth float64)
- func (i *Item) SetName(name string)
- func (i *Item) SetRarity(rarity float64)
- func (i *Item) SetRarityScale(rarityScale float64)
- type KeyItem
- func (k *KeyItem) GetCraftingRecipe() map[string]float64
- func (k *KeyItem) GetKeyItemImage() *ebiten.Image
- func (k *KeyItem) GetKeyItemModifiers() KeyItemModifiers
- func (k *KeyItem) GetKeyItemName() string
- func (k *KeyItem) GetKeyItemType() string
- func (k *KeyItem) Init(name, keyItemType string, modifiers KeyItemModifiers, ...)
- type KeyItemModifiers
- type Material
- type RawMaterial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory struct { NewRodAcquired bool NewReelAcquired bool NewLineAcquired bool NewMagnetAcquired bool NewBootsAcquired bool NewElecAcquired bool NewRepAcquired bool // contains filtered or unexported fields }
func (*Inventory) AddKeyItem ¶
func (*Inventory) AddMaterial ¶
func (*Inventory) GetKeyItems ¶
func (*Inventory) GetKeyItemsByType ¶
func (*Inventory) GetMaterials ¶
func (*Inventory) InitMaterials ¶
func (i *Inventory) InitMaterials()
func (*Inventory) RemoveAllItemWithName ¶
func (i *Inventory) RemoveAllItemWithName(name string) []map[string]RawMaterial
func (*Inventory) RemoveMaterial ¶
func (*Inventory) RemoveOneItemWithName ¶
func (i *Inventory) RemoveOneItemWithName(name string) map[string]RawMaterial
func (*Inventory) ResetMaterials ¶
func (i *Inventory) ResetMaterials()
func (*Inventory) SalvageAllItems ¶
func (*Inventory) SalvageOneItem ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) AddModifier ¶
func (*Item) AddRawMaterial ¶
func (*Item) GetMaterials ¶
func (i *Item) GetMaterials() map[string]RawMaterial
func (*Item) GetRarityScale ¶
func (*Item) SetRarityScale ¶
type KeyItem ¶
type KeyItem struct {
// contains filtered or unexported fields
}
func (*KeyItem) GetCraftingRecipe ¶
func (*KeyItem) GetKeyItemImage ¶
func (k *KeyItem) GetKeyItemImage() *ebiten.Image
func (*KeyItem) GetKeyItemModifiers ¶
func (k *KeyItem) GetKeyItemModifiers() KeyItemModifiers
func (*KeyItem) GetKeyItemName ¶
func (*KeyItem) GetKeyItemType ¶
type KeyItemModifiers ¶
type Material ¶
type Material struct {
// contains filtered or unexported fields
}
func (*Material) GetMaterial ¶
type RawMaterial ¶
type RawMaterial struct {
// contains filtered or unexported fields
}
func (*RawMaterial) GetAmount ¶
func (r *RawMaterial) GetAmount() int
func (*RawMaterial) RandomiseAmount ¶
func (r *RawMaterial) RandomiseAmount()
func (*RawMaterial) SetMinAndMax ¶
func (r *RawMaterial) SetMinAndMax(min, max int)
Click to show internal directories.
Click to hide internal directories.