Update calls to load interior ref lists

This commit is contained in:
Tyler Hallada 2020-11-21 01:37:41 -05:00
parent 679a97a2d6
commit 90087c3056
3 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -2,5 +2,5 @@ scriptname BRInteriorRefList
bool function Create(string apiUrl, string apiKey, int shop_id, quest quest) global native bool function Create(string apiUrl, string apiKey, int shop_id, quest quest) global native
bool function ClearCell() global native bool function ClearCell() global native
bool function Load(string apiUrl, string apiKey, int interior_ref_id, ObjectReference player, quest quest) global native bool function Load(string apiUrl, string apiKey, int interior_ref_id, ObjectReference player, ObjectReference private_chest, ObjectReference public_chest, quest quest) global native
bool function LoadByShopId(string apiUrl, string apiKey, int shop_id, ObjectReference player, quest quest) global native bool function LoadByShopId(string apiUrl, string apiKey, int shop_id, ObjectReference player, ObjectReference private_chest, ObjectReference public_chest, quest quest) global native

View File

@ -22,6 +22,8 @@ string property ActiveShopDescription auto
; references ; references
Actor property PlayerRef auto Actor property PlayerRef auto
ObjectReference property ShopXMarker auto ObjectReference property ShopXMarker auto
ObjectReference property PrivateChest auto
ObjectReference property PublicChest auto
; messages ; messages
Message property ShopDetailMessage auto Message property ShopDetailMessage auto
Message property BuyMerchandiseMessage auto Message property BuyMerchandiseMessage auto
@ -151,7 +153,7 @@ bool function LoadInteriorRefs()
endif endif
Debug.Trace("ClearCell result: " + result) Debug.Trace("ClearCell result: " + result)
result = BRInteriorRefList.Load(ApiUrl, ApiKey, InteriorRefListId, ShopXMarker, self) result = BRInteriorRefList.Load(ApiUrl, ApiKey, InteriorRefListId, ShopXMarker, PrivateChest, PublicChest, self)
if result if result
return true return true
else else
@ -261,7 +263,7 @@ event OnListShopsSuccess(int[] ids, string[] names, string[] descriptions)
endif endif
Debug.Trace("ClearCell result: " + result) Debug.Trace("ClearCell result: " + result)
result = BRInteriorRefList.LoadByShopId(ApiUrl, ApiKey, ActiveShopId, ShopXMarker, self) result = BRInteriorRefList.LoadByShopId(ApiUrl, ApiKey, ActiveShopId, ShopXMarker, PrivateChest, PublicChest, self)
if !result if !result
Debug.MessageBox("Failed to load shop.\n\n" + BugReportCopy) Debug.MessageBox("Failed to load shop.\n\n" + BugReportCopy)
endif endif