Documentation
¶
Index ¶
- type ItemService
- func (service *ItemService) GetAllResources(skill *artifactsmmo.GatheringSkill, code *string) ([]artifactsmmo.ResourceSchema, error)
- func (service *ItemService) GetCharacterEquipment(player *character.Character) *[]character.Equipment
- func (service *ItemService) GetItem(name string) (*artifactsmmo.ItemSchema, error)
- func (service *ItemService) IsCraftable(item *artifactsmmo.ItemSchema) bool
- func (service *ItemService) IsGatherable(item *artifactsmmo.ItemSchema) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemService ¶
type ItemService struct {
// contains filtered or unexported fields
}
func DefaultItemService ¶
func DefaultItemService() *ItemService
func NewItemService ¶
func NewItemService(logger *slog.Logger, server string, opts ...artifactsmmo.ClientOption) (*ItemService, error)
func (*ItemService) GetAllResources ¶
func (service *ItemService) GetAllResources(skill *artifactsmmo.GatheringSkill, code *string) ([]artifactsmmo.ResourceSchema, error)
func (*ItemService) GetCharacterEquipment ¶
func (service *ItemService) GetCharacterEquipment(player *character.Character) *[]character.Equipment
func (*ItemService) GetItem ¶
func (service *ItemService) GetItem(name string) (*artifactsmmo.ItemSchema, error)
func (*ItemService) IsCraftable ¶
func (service *ItemService) IsCraftable(item *artifactsmmo.ItemSchema) bool
func (*ItemService) IsGatherable ¶
func (service *ItemService) IsGatherable(item *artifactsmmo.ItemSchema) bool
Click to show internal directories.
Click to hide internal directories.