gg.easy.airship 0.1.2155 → 0.1.2156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -272,9 +272,11 @@ public class LoginApp : MonoBehaviour {
272
272
  this.steamLoginButton.SetLoading(false);
273
273
  return;
274
274
  }
275
-
275
+
276
+ // Different login route is required for the playtest app.
277
+ var prodApp = SteamUtils.GetAppID().m_AppId == 2381730;
276
278
  RestClient.Get(new RequestHelper() {
277
- Uri = AirshipPlatformUrl.gameCoordinator + "/auth/steam/in-game",
279
+ Uri = AirshipPlatformUrl.gameCoordinator + (prodApp ? "/auth/steam/in-game" : "/auth/steam/in-game-playtest"),
278
280
  Headers = new Dictionary<string, string>() {
279
281
  { "Authorization", steamToken }
280
282
  },
@@ -25,7 +25,7 @@ public class LuauScript : MonoBehaviour {
25
25
  public AirshipScript script;
26
26
 
27
27
  public IntPtr thread;
28
- public LuauContext context = LuauContext.Game;
28
+ [NonSerialized] public LuauContext context = LuauContext.Game;
29
29
  [HideInInspector] public bool forceContext = false;
30
30
 
31
31
  [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
@@ -197,7 +197,7 @@ public class SteamLuauAPI : Singleton<SteamLuauAPI> {
197
197
  };
198
198
 
199
199
  // Is friend playing Airship?
200
- if (friendGameInfo.m_gameID.m_GameID == 2381730) {
200
+ if (friendGameInfo.m_gameID.m_GameID == SteamUtils.GetAppID().m_AppId) {
201
201
  friendInfoStruct.playingAirship = true;
202
202
  } else if (friendGameInfo.m_gameID.IsValid()) {
203
203
  friendInfoStruct.playingOtherGame = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2155",
3
+ "version": "0.1.2156",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",