Skip to content

Commit c4d2ba6

Browse files
committed
Added Easy use prefabs
1 parent 881ddd4 commit c4d2ba6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+58667
-44
lines changed

Assets/LootLocker/Common/LootLockerGenericConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class LootLockerGenericConfig : ScriptableObject
1515
public int gameID;
1616
public string game_version = "1.0";
1717
[HideInInspector]
18-
public string deviceID;
18+
public string deviceID = "defaultPlayerId";
1919
[HideInInspector]
2020
public string email, password;
2121
[HideInInspector]

Assets/LootLocker/Common/LootlockerCommon.cs

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,26 @@ public class Rental_Options
5555
public object links { get; set; }
5656
}
5757

58+
public class LootLockerStorage
59+
{
60+
public string key;
61+
public string value;
62+
}
63+
64+
public class Rarity
65+
{
66+
public string name { get; set; }
67+
public string short_name { get; set; }
68+
public string color { get; set; }
69+
}
70+
71+
public class Filter
72+
{
73+
public string value { get; set; }
74+
public string name { get; set; }
75+
}
76+
77+
5878
public class Asset
5979
{
6080
public int id { get; set; }
@@ -63,7 +83,7 @@ public class Asset
6383
public bool purchasable { get; set; }
6484
public string type { get; set; }
6585
public int price { get; set; }
66-
public string sales_price { get; set; }
86+
public int? sales_price { get; set; }
6787
public string display_price { get; set; }
6888
public string context { get; set; }
6989
public string unlocks_context { get; set; }
@@ -73,14 +93,15 @@ public class Asset
7393
public int default_variation_id { get; set; }
7494
public string description { get; set; }
7595
public Links links { get; set; }
76-
public string[] storage { get; set; }
77-
public string rarity { get; set; }
96+
97+
public LootLockerStorage[] storage { get; set; }
98+
public Rarity rarity { get; set; }
7899
public bool popular { get; set; }
79100
public int popularity_score { get; set; }
80101
public bool unique_instance { get; set; }
81-
public string external_identifiers { get; set; }
102+
//public string external_identifiers { get; set; }
82103
public Rental_Options[] rental_options { get; set; }
83-
public string[] filters { get; set; }
104+
public Filter[] filters { get; set; }
84105
public Variation[] variations { get; set; }
85106
public bool featured { get; set; }
86107
public bool context_locked { get; set; }

Assets/LootLocker/Game/LootLockerSDKManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public static void VerifyID(string deviceId, Action<VerifyResponse> onComplete)
9797
public static void StartSession(string deviceId, Action<SessionResponse> onComplete)
9898
{
9999
if (!CheckInitialized()) return;
100+
LootLockerConfig.current.deviceID = deviceId;
100101
SessionRequest sessionRequest = new SessionRequest(deviceId);
101102
LootLockerAPIManager.Session(sessionRequest, onComplete);
102103
}

Assets/LootLocker/SampleApp/EasyUsePrefabs.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/LootLocker/SampleApp/EasyUsePrefabs/Prefabs.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)