Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller consists instance for a type of data
func (*Controller) Content ¶
func (c *Controller) Content() []*Item
Content returns the content from its cache
func (*Controller) Item ¶
func (c *Controller) Item(itemID string) (result *Item)
Item returns the Item found with specified itemID
type Item ¶
type Item struct { ItemID string `json:"itemId,omitempty"` NameI18N map[string]string `json:"name_i18n,omitempty"` Existence models.Existence `json:"existence"` SpriteCoord []int `json:"spriteCoord,omitempty"` }
Item specifies data structure for the item data type
func (Item) MarshalJSON ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.