Commit Graph

34 Commits (master)

Author SHA1 Message Date
Mr_Goldberg 942f011ee0
Implement ConsumeItem. 2 years ago
Mr_Goldberg faf15e5d88
Make GetItemDefinitionIDs behave more like the real one. 3 years ago
Nemirtingas fe9bbd1104 Add a common include file. 4 years ago
Mr_Goldberg 39cb2c7c17
Implement the promoitems functions. 4 years ago
Mr_Goldberg 02ee5f9a6d
Implement the TriggerItemDrop function. 4 years ago
Mr_Goldberg 66e596ea29
Update to sdk 1.49 4 years ago
Mr_Goldberg 714904b984
Make all functions return something and re enable the msvc error. 4 years ago
Mr_Goldberg 3f44827326
Basic JoinClanChatRoom implementation. 4 years ago
Mr_Goldberg 949a327b8a
Implement inventory functions.
Fix CI build.
5 years ago
Nemirtingas ef5693d9f8 Little improvements
steam_user_stats: Use the value stored in the JSON object.
steal_inventory: use 'empty' that is guaranteed to be constant in time.
5 years ago
Mr_Goldberg 42d9217f00
Fix build issue. 5 years ago
Mr_Goldberg 828e5d456c
Inventory/achivements bug fixes/improvements/cleanups. 5 years ago
Nemirtingas 19c444de7f Remove the inventory folder 5 years ago
Nemirtingas 8c45ab2003 Rework inventory loading
More generic json loading allows to load a json from a specified folder rather than the "inventory" directory.
Also changed achievements location to <appid> root diectory
5 years ago
Nemirtingas 846ed27397 Add a default inventory support
Put a file in <steam_api.dll directory>/steam_settings/default_items.json with all default items you want (same syntax as the inventory file)
5 years ago
Nemirtingas 86b178f55b Fixed definition update not being called
Should update definition when inventory is requested and definition is not loaded
5 years ago
Nemirtingas f1118030e8 Added the forgotten size update if copied less chars. 5 years ago
Nemirtingas 21e08ed220 Achievements support & inventory customization.
Added achievements support. Achievements are saved like real steam, see your inventory directory.(like items, uses a .json, tool can be used to dump achievements from steam public api).
You will need a public apikey. (See https://steamcommunity.com/dev)
Reworked item support to split inventory items to defined items.
5 years ago
Nemirtingas d2fba40cb4 Small improvements
Its always better to reserve memory when we can for a vector. Also, STL implements a lot of algorithms, its better to use them in case someday you need to change it to something alike. Like reversing the copy, use transform instead, etc...
5 years ago
Mr_Goldberg 514f2ddbd9
Some small cleanups. 5 years ago
Mr_Goldberg 59a9fcee0d
Some cleanups.
Load items json only if there's an inventory request.

Launch callbacks only when loading is done.

Copy over original unformatted json.hpp
5 years ago
Nemirtingas fb31aef9b2 Set items to static
Set items to static and call the json load only once.
5 years ago
Nemirtingas 7853451b01 Added buffer size check while populating it. 5 years ago
Nemirtingas 0b134e98a9 Added debug message 5 years ago
Nemirtingas 98c556d6dc atomic_bool is not copy_constructible 5 years ago
Nemirtingas 3273b1482b steam_items.json renamed
steam_items.json has been renamed to items.json and now lives in steam_settings beside the steam_api.dll
5 years ago
Nemirtingas 573a01212b Switch to atomic_bool for thread synchronisation. 5 years ago
Nemirtingas 5c66c21f53 Modified Inventory to match steam's implementation 5 years ago
Nemirtingas 06f88d4687 Added the missing use cases
If pchPropertyName == NULL and/or pchValueBuffer == NULL
5 years ago
Nemirtingas 19659da6c2 Fixed crash on load.
Fixed dll crash on load by adding a check if the Json file exists or not.
5 years ago
Nemirtingas 5f67d359b3 Fixed typo because of merging 5 years ago
Nemirtingas bbf6a3b6ff Added partial inventory support.
For now, I load items and add them to the inventory and to the market.
5 years ago
Mr_Goldberg 106d4025bb
Make the inventory result callback respect the result timeout. 5 years ago
Mr_Goldberg d968c3e1b5
Initial commit. 5 years ago