Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Csgo ¶
type Csgo struct { // CSGO types Rarities map[string]*Rarity `json:"Rarities"` Paintkits map[string]*Paintkit `json:"Paintkits"` Stickerkits map[string]*Stickerkit `json:"Stickerkits"` WeaponSets map[string]*WeaponSet `json:"WeaponSets"` KnifeSet map[string][]string `json:"KnifeSet"` GloveSet map[string][]string `json:"GloveSet"` // items Guns map[string]*Weapon `json:"Guns"` Knives map[string]*Weapon `json:"Knives"` Gloves map[string]*Gloves `json:"Gloves"` Equipment map[string]*Equipment `json:"Equipment"` WeaponCrates map[string]*WeaponCrate `json:"WeaponCrates"` StickerCapsules map[string]*StickerCapsule `json:"StickerCapsules"` }
Csgo is a representation of all Csgo items that are relevant to interpreting the game_items file.
type Equipment ¶
type Equipment struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` }
Equipment represents miscellaneous items in game that don't constitute weapons.
type Gloves ¶
type Gloves struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` }
Gloves represents a special skinnable item that isn't a Weapon.
type Paintkit ¶
type Paintkit struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` RarityId string `json:"rarityId"` MinFloat decimal.Decimal `json:"minFloat"` MaxFloat decimal.Decimal `json:"maxFloat"` }
Paintkit represents the image details of a skin, i.e. the available float range the skin can be in. Every entities.Skin has an associated Paintkit.
type Rarity ¶
type Rarity struct { Id string `json:"id"` Index int `json:"index"` GeneralRarityName string `json:"generalRarityName"` WeaponRarityName string `json:"weaponRarityName"` CharacterRarityName string `json:"characterRarityName"` }
Rarity represents a Csgo item Rarity.
type StickerCapsule ¶
type StickerCapsule struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` StickerKits []string `json:"stickerKits"` }
StickerCapsule represents an openable capsule that contains stickers. The capsule's stickers are determined by the linked clientLootListId (client_loot_list).
type Stickerkit ¶
type Stickerkit struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` RarityId string `json:"rarityId"` Variant string `json:"variant"` }
Stickerkit represents a Stickerkit object from the items_game file.
type Weapon ¶
type Weapon struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` }
Weapon represents a skinnable item that is also a Weapon in Csgo.
type WeaponCrate ¶
type WeaponCrate struct { Id string `json:"id"` Index int `json:"index"` Name string `json:"name"` Description string `json:"description"` // WeaponSetId is the ID of the WeaponSet for the item/Paintkit combinations // available in the crate. WeaponSetIds []string `json:"weaponSetIds"` // QualityCapability shows whether the crate can produce special skin qualities // e.g. Souvenir or StatTrak™ QualityCapability WeaponQuality `json:"qualityCapability"` }
WeaponCrate represents an openable crate that contains items. The crate's items are determined by the linked WeaponSet (item_set).
type WeaponQuality ¶
type WeaponQuality string
WeaponQuality represents a skin type, e.g. StatTrak™ or Souvenir
var ( QualityNormal WeaponQuality = "" QualityStatTrak WeaponQuality = "StatTrak™" QualitySouvenir WeaponQuality = "Souvenir" )