town

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ItemsToBeSold added in v0.3.0

func ItemsToBeSold(d game.Data) (items []data.Item)

Types

type A1

type A1 struct {
}

func (A1) GamblingNPC added in v0.3.0

func (a A1) GamblingNPC() npc.ID

func (A1) HealNPC

func (a A1) HealNPC() npc.ID

func (A1) MercContractorNPC

func (a A1) MercContractorNPC() npc.ID

func (A1) RefillNPC

func (a A1) RefillNPC() npc.ID

func (A1) RepairNPC

func (a A1) RepairNPC() npc.ID

func (A1) TPWaitingArea

func (a A1) TPWaitingArea(d game.Data) data.Position

func (A1) TownArea added in v0.4.0

func (a A1) TownArea() area.ID

type A2

type A2 struct {
}

func (A2) GamblingNPC added in v0.3.0

func (a A2) GamblingNPC() npc.ID

func (A2) HealNPC

func (a A2) HealNPC() npc.ID

func (A2) MercContractorNPC

func (a A2) MercContractorNPC() npc.ID

func (A2) RefillNPC

func (a A2) RefillNPC() npc.ID

func (A2) RepairNPC

func (a A2) RepairNPC() npc.ID

func (A2) TPWaitingArea

func (a A2) TPWaitingArea(_ game.Data) data.Position

func (A2) TownArea added in v0.4.0

func (a A2) TownArea() area.ID

type A3

type A3 struct {
}

func (A3) GamblingNPC added in v0.3.0

func (a A3) GamblingNPC() npc.ID

func (A3) HealNPC

func (a A3) HealNPC() npc.ID

func (A3) MercContractorNPC

func (a A3) MercContractorNPC() npc.ID

func (A3) RefillNPC

func (a A3) RefillNPC() npc.ID

func (A3) RepairNPC

func (a A3) RepairNPC() npc.ID

func (A3) TPWaitingArea

func (a A3) TPWaitingArea(_ game.Data) data.Position

func (A3) TownArea added in v0.4.0

func (a A3) TownArea() area.ID

type A4

type A4 struct {
}

func (A4) GamblingNPC added in v0.3.0

func (a A4) GamblingNPC() npc.ID

func (A4) HealNPC

func (a A4) HealNPC() npc.ID

func (A4) MercContractorNPC

func (a A4) MercContractorNPC() npc.ID

func (A4) RefillNPC

func (a A4) RefillNPC() npc.ID

func (A4) RepairNPC

func (a A4) RepairNPC() npc.ID

func (A4) TPWaitingArea

func (a A4) TPWaitingArea(_ game.Data) data.Position

func (A4) TownArea added in v0.4.0

func (a A4) TownArea() area.ID

type A5

type A5 struct {
}

func (A5) GamblingNPC added in v0.3.0

func (a A5) GamblingNPC() npc.ID

func (A5) HealNPC

func (a A5) HealNPC() npc.ID

func (A5) MercContractorNPC

func (a A5) MercContractorNPC() npc.ID

func (A5) RefillNPC

func (a A5) RefillNPC() npc.ID

func (A5) RepairNPC

func (a A5) RepairNPC() npc.ID

func (A5) TPWaitingArea

func (a A5) TPWaitingArea(_ game.Data) data.Position

func (A5) TownArea added in v0.4.0

func (a A5) TownArea() area.ID

type ShopManager

type ShopManager struct {
	// contains filtered or unexported fields
}

func NewShopManager

func NewShopManager(logger *slog.Logger, bm health.BeltManager, container container.Container) ShopManager

func (ShopManager) BuyConsumables

func (sm ShopManager) BuyConsumables(d game.Data, forceRefill bool)

func (ShopManager) BuyItem added in v0.3.0

func (sm ShopManager) BuyItem(i data.Item, quantity int)

func (ShopManager) SellItem added in v0.3.0

func (sm ShopManager) SellItem(i data.Item)

func (ShopManager) SellJunk

func (sm ShopManager) SellJunk(d game.Data)

func (ShopManager) ShouldBuyIDs

func (sm ShopManager) ShouldBuyIDs(d game.Data) bool

func (ShopManager) ShouldBuyKeys

func (sm ShopManager) ShouldBuyKeys(d game.Data) (int, bool)

func (ShopManager) ShouldBuyTPs

func (sm ShopManager) ShouldBuyTPs(d game.Data) bool

type Town

type Town interface {
	RefillNPC() npc.ID
	HealNPC() npc.ID
	RepairNPC() npc.ID
	MercContractorNPC() npc.ID
	GamblingNPC() npc.ID
	TPWaitingArea(d game.Data) data.Position
	TownArea() area.ID
}

func GetTownByArea

func GetTownByArea(a area.ID) Town

Jump to

Keyboard shortcuts

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