Commit Graph

11 Commits

Author SHA1 Message Date
d1849735b2 Semi-working refactor of merch for multiple shelves
Code is now capable of loading merch onto multiple store shelves during load shop.

Still need to fix refresh, loading merch after creating merch and making transactions, the shelf buttons, as well as saving the state of the shelves to the server.
2020-11-28 23:44:48 -05:00
e673ac4642 Save and load shelves from server interior_ref_lists
During CreateInteriorRefList, save shelf positions in a separate vector and ignore their buttons. In Load, recreate the shelves and their buttons from the shelf vec.

Also start storing FormIDs in a header file so I don't have to keep passing Keywords into all the functions from Papyrus.
2020-11-21 01:36:14 -05:00
0f1b017158 Calculate price from value, use ints for ids 2020-11-18 23:26:45 -05:00
cf8e0d099d Update interior_ref_list and merchandise_list by shop id
Also, rename placeholder to activator. Get merchandise by shop id. Start adjusting merch positions based on shelf angle.
2020-10-25 03:19:36 -04:00
6512534219 Rename external get_interior_ref_list_by_shop_id call 2020-10-24 03:03:43 -04:00
7602efbc77 Add LoadInteriorRefListByShopId function 2020-10-20 01:20:13 -04:00
055905bffc Refactor API calls to use FFIResult
Also create a `successReg` and `failReg` for every async function. Report error string to `failReg`.
2020-10-18 20:53:41 -04:00
00e99bba2e Clean up dead commented code 2020-10-17 17:32:38 -04:00
b3dd9e240d Make LoadInteriorRefList async without crash using SKSE Task interface 2020-10-16 17:43:02 -04:00
5afc919f03 Make functions with external calls async
Except for LoadInteriorRefList which seems to be causing a crash if I make it async.
2020-10-15 23:41:39 -04:00
36abd362cd Initial commit. Integrates with client, saves refs and merch. 2020-10-12 19:50:20 -04:00