Classes
- Weapon
- Collection
- CSGODataParser
Parser of CSGOData.
- MusicKit
Standard return for a MusicKit.
- Prefab
Standard return for a Prefab.
- Weapon
- Rarity
- Weapon
- SkinPaint
- Sticker
Standard return for a Sticker.
- Weapon
Standard return for a Weapon.
Typedefs
- Collection :
Object
- MusicKit :
Object
- Prefab :
Object
- Rarity :
Object
- SkinPaint :
Object
- Sticker :
Object
- Weapon :
Object
Weapon
Kind: global class
new Weapon()
Standard return for a collection
new Weapon()
Standard return for a skin/paint
new Weapon()
Standard return for a skin/paint
Collection
CSGODataParser
Parser of CSGOData.
Kind: global class
Todo
- Refactoring… This file will be too long
- Generalization isDatasInitialized
- Better handle of Little Endian for vdf / Hack dependency
- Datamining File for more informations
- DEBUG - Better Handle of Knifes and Rarities (My god, need so much hack ><. Volvo… that’s not really clean ^^’)
- To ES6
- Optimize Performances
-
defindex to int ?
-
- new CSGODataParser(schemaFilePath, langFilePath, itemsFilePath, logLevel, logFilePath)
- .getLogger() ⇒
winston.Logger
- .isDatasInitialized() ⇒
boolean
- .isLangInitialized() ⇒
boolean
- .getLangValue(keyLang) ⇒
String
- .getWeapons() ⇒
Array.<Weapon>
- .getCollections() ⇒
Array.<Collection>
- .getExteriors() ⇒
Array.<String>
- .getCases() ⇒
Array.<Prefab>
- .getCaseKeys() ⇒
Array.<Prefab>
- .getStickers() ⇒
Array.<Sticker>
- .getMusicKits() ⇒
Array.<MusicKit>
- .getRaritiesIndex() ⇒
Array.<Rarity>
new CSGODataParser(schemaFilePath, langFilePath, itemsFilePath, logLevel, logFilePath)
Param | Type | Description |
---|---|---|
schemaFilePath | String |
Path to schema file. |
langFilePath | String |
Path to csgo_lang file. |
itemsFilePath | String |
Path to items_game file. |
logLevel | String |
Winston Log Level, if > info no timing data for generations. |
logFilePath | String |
Choosen file path to write logs. |
csgoDataParser.getLogger() ⇒ winston.Logger
Return the parser’s logger.
Kind: instance method of CSGODataParser
Returns: winston.Logger
- Winston based Parser’s Logger.
Access: public
csgoDataParser.isDatasInitialized() ⇒ boolean
Check if datas files are OK.
Kind: instance method of CSGODataParser
Returns: boolean
- True if datas initialized, false otherwise
Access: public
csgoDataParser.isLangInitialized() ⇒ boolean
Check if lang file is OK.
Kind: instance method of CSGODataParser
Returns: boolean
- True if initialized, false otherwise
Access: public
csgoDataParser.getLangValue(keyLang) ⇒ String
Get the lang value from valve key i18n values.
Kind: instance method of CSGODataParser
Returns: String
- traduction if langfile initialized and key is present, key otherwise
Access: public
Param | Type | Description |
---|---|---|
keyLang | String |
valve key i18n values (like #PaintKit_aa_fade_Tag) |
csgoDataParser.getWeapons() ⇒ Array.<Weapon>
Generate bases Weapons data from schema’s data.
Kind: instance method of CSGODataParser
Returns: Array.<Weapon>
- List of Objects. One object represent one Weapon.
Access: public
csgoDataParser.getCollections() ⇒ Array.<Collection>
Generate collection’s data from itemsgame’s data.
Kind: instance method of CSGODataParser
Returns: Array.<Collection>
- List of Collections. One object represent one Collection.
Access: public
csgoDataParser.getExteriors() ⇒ Array.<String>
Generate exteriors.
Kind: instance method of CSGODataParser
Returns: Array.<String>
- One string represent one exterior type - I18N Name
Access: public
csgoDataParser.getCases() ⇒ Array.<Prefab>
Generate Weapon/Stickers skin Case list.
Kind: instance method of CSGODataParser
Returns: Array.<Prefab>
- List of Object. One object represent one case
Access: public
csgoDataParser.getCaseKeys() ⇒ Array.<Prefab>
Generate Weapon/Stickers skin Case keys list.
Kind: instance method of CSGODataParser
Returns: Array.<Prefab>
- List of Object. One object represent one case key
Access: public
csgoDataParser.getStickers() ⇒ Array.<Sticker>
Generate Stickers list.
Note : Some unknown stickers are present in the item_game file so they have a rarity set to “default” (id 2 to 12)
Kind: instance method of CSGODataParser
Returns: Array.<Sticker>
- List of Sticker. One object represent one sticker
Access: public
csgoDataParser.getMusicKits() ⇒ Array.<MusicKit>
Generate MusicKits list.
Kind: instance method of CSGODataParser
Returns: Array.<MusicKit>
- List of MusicKit. One object represent one music kit
Access: public
csgoDataParser.getRaritiesIndex() ⇒ Array.<Rarity>
Generate Rarities index.
Kind: instance method of CSGODataParser
Returns: Array.<Rarity>
- List of Rarity objects. One object represent one rarity.
Access: public
MusicKit
Standard return for a MusicKit.
Prefab
Standard return for a Prefab.
Weapon
Kind: global class
new Weapon()
Standard return for a collection
new Weapon()
Standard return for a skin/paint
new Weapon()
Standard return for a skin/paint
Rarity
Weapon
Kind: global class
new Weapon()
Standard return for a collection
new Weapon()
Standard return for a skin/paint
new Weapon()
Standard return for a skin/paint
SkinPaint
Sticker
Standard return for a Sticker.
Weapon
Standard return for a Weapon.
Kind: global class
new Weapon()
Standard return for a collection
new Weapon()
Standard return for a skin/paint
new Weapon()
Standard return for a skin/paint
Collection : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the collection |
techName | String |
Technical name of the collection |
content | Array.<SkinPaint> |
skins List of skins for this Collection (Doe’nt contain knifes) |
MusicKit : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the music kit |
techName | String |
Technical name of the music kit |
defIndex | String |
Index/Key of the music kit |
Prefab : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the prefab object |
techName | String |
Technical name of the prefab object |
defIndex | String |
Index/Key of the prefab |
type | String |
Type of the prefab object |
Rarity : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
techName | String |
Technical name of the rarity |
weaponName | String |
I18N name applied to a weapon |
miscName | String |
I18N name applied to others objects (Medal, Music, …) |
defIndex | String |
|
color | String |
Hexadecimal color value that represent the quality |
SkinPaint : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the paint/skin |
techName | String |
Technical name of the paint/skin |
weaponTechName | String |
Technical name of the weapon |
fullName | String |
I18N Full name of the Skin (doesn’t contain Statrak or (Quality) information. Beside, knifes got their little star :p) |
rarity | String |
Rarity of this paint (inexplicably, some of them are wrong on items file regarding in-game reality) |
Sticker : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the sticker |
techName | String |
Technical name of the sticker |
defIndex | String |
Index/Key of the sticker |
rarity | String |
Rarity of this sticker |
Weapon : Object
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
name | String |
I18N name of the weapon |
techName | String |
Technical name of the weapon |
type | String |
Weapon category (Pistol, Rifle, SMG…) |
defIndex | String |
Technical index in CSGO Schema |
skins | Array.<SkinPaint> |
List of skins for this Weapon |
- Weapon :
Object
new Weapon()
Standard return for a collection
new Weapon()
Standard return for a skin/paint
new Weapon()
Standard return for a skin/paint