fix(unity): resolve all 32 C# compilation errors
- CardModel: add missing `id` field - CardModel: `imageUrl` → `imageUri` (match JSON property name) - DeckModel: `commanderName` → `commander` (match JSON property name) - PreconDeck: `imageUrl` → `imageUri` - Add missing `PreconListWrapper` model class - Add `using UnityEngine.Networking` to CollectionController, DeckGeneratorController, PreconController - Remove double StartCoroutine() wrapping on ApiClient calls (GetRaw/PatchRaw/Delete/PostRaw already return Coroutine) Affected: CollectionController, DeckBuilderController, DeckGeneratorController, ScannerController, CoachController
This commit is contained in:
1 parent
2d8a55fdc6
commit
a501a9755d
9 files changed
+47
-30
No files matched your search
@@ -11,6 +11,7 @@ namespace CommanderAILab.Models
|
||||
[Serializable]
|
||||
public class CardModel
|
||||
{
|
||||
[JsonProperty("id")] public string id;
|
||||
[JsonProperty("name")] public string name;
|
||||
[JsonProperty("oracle_id")] public string oracleId;
|
||||
[JsonProperty("scryfall_id")] public string scryfallId;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace CommanderAILab.Models
|
||||
{
|
||||
/// <summary>Wrapper for the precon list returned by /api/lab/precons.</summary>
|
||||
[Serializable]
|
||||
public class PreconListWrapper
|
||||
{
|
||||
[JsonProperty("precons")] public List<string> precons;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user