Commit Graph

34 Commits (6647317b8844026b564c62ce4917289b7cff8e7b)

Author SHA1 Message Date
Mr_Goldberg 942f011ee0
Implement ConsumeItem. 2022-07-31 17:10:31 -04:00
Mr_Goldberg faf15e5d88
Make GetItemDefinitionIDs behave more like the real one. 2021-05-26 23:06:40 -04:00
Nemirtingas fe9bbd1104 Add a common include file. 2020-07-16 11:56:24 +02:00
Mr_Goldberg 39cb2c7c17
Implement the promoitems functions. 2020-06-25 11:26:40 -04:00
Mr_Goldberg 02ee5f9a6d
Implement the TriggerItemDrop function. 2020-06-20 21:17:31 -04:00
Mr_Goldberg 66e596ea29
Update to sdk 1.49 2020-06-14 16:04:43 -04:00
Mr_Goldberg 714904b984
Make all functions return something and re enable the msvc error. 2020-05-20 18:42:15 -04:00
Mr_Goldberg 3f44827326
Basic JoinClanChatRoom implementation. 2020-01-20 11:48:15 -05:00
Mr_Goldberg 949a327b8a
Implement inventory functions.
Fix CI build.
2019-12-04 08:44:14 -05:00
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.
2019-10-20 13:46:25 +02:00
Mr_Goldberg 42d9217f00
Fix build issue. 2019-10-19 12:06:39 -04:00
Mr_Goldberg 828e5d456c
Inventory/achivements bug fixes/improvements/cleanups. 2019-10-19 12:02:30 -04:00
Nemirtingas 19c444de7f Remove the inventory folder 2019-10-13 15:27:17 +02:00
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
2019-10-13 12:26:22 +02:00
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)
2019-09-23 19:06:24 +02:00
Nemirtingas 86b178f55b Fixed definition update not being called
Should update definition when inventory is requested and definition is not loaded
2019-09-01 21:33:29 +02:00
Nemirtingas f1118030e8 Added the forgotten size update if copied less chars. 2019-08-25 00:29:05 +02:00
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.
2019-08-24 17:42:39 +02:00
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...
2019-07-18 22:21:55 +02:00
Mr_Goldberg 514f2ddbd9
Some small cleanups. 2019-07-17 15:55:12 -04:00
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
2019-07-17 13:25:35 -04:00
Nemirtingas fb31aef9b2 Set items to static
Set items to static and call the json load only once.
2019-07-17 17:28:39 +02:00
Nemirtingas 7853451b01 Added buffer size check while populating it. 2019-07-14 22:47:33 +02:00
Nemirtingas 0b134e98a9 Added debug message 2019-07-14 22:24:56 +02:00
Nemirtingas 98c556d6dc atomic_bool is not copy_constructible 2019-07-14 21:01:42 +02:00
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
2019-07-14 20:53:20 +02:00
Nemirtingas 573a01212b Switch to atomic_bool for thread synchronisation. 2019-07-14 20:51:23 +02:00
Nemirtingas 5c66c21f53 Modified Inventory to match steam's implementation 2019-07-14 19:22:30 +02:00
Nemirtingas 06f88d4687 Added the missing use cases
If pchPropertyName == NULL and/or pchValueBuffer == NULL
2019-07-12 22:26:45 +02:00
Nemirtingas 19659da6c2 Fixed crash on load.
Fixed dll crash on load by adding a check if the Json file exists or not.
2019-07-09 15:07:10 +02:00
Nemirtingas 5f67d359b3 Fixed typo because of merging 2019-06-25 15:53:00 +02:00
Nemirtingas bbf6a3b6ff Added partial inventory support.
For now, I load items and add them to the inventory and to the market.
2019-06-25 15:10:33 +02:00
Mr_Goldberg 106d4025bb
Make the inventory result callback respect the result timeout. 2019-05-03 21:54:32 -04:00
Mr_Goldberg d968c3e1b5
Initial commit. 2019-04-13 12:21:56 -04:00