mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
Merge pull request #168 from minenice55/riq-conversion-fix
tengoku -> riq converter: skip unknown datamodels
This commit is contained in:
commit
95f1e19ea9
1 changed files with 6 additions and 0 deletions
|
@ -235,6 +235,12 @@ namespace HeavenStudio
|
|||
game = EventCaller.instance.GetMinigame(e.datamodel.Split(0));
|
||||
action = EventCaller.instance.GetGameAction(game, e.datamodel.Split(1));
|
||||
|
||||
if (game == null || action == null)
|
||||
{
|
||||
//FUTURE: attempt to convert to a new entity if a converter exists for this datamodel
|
||||
UnityEngine.Debug.LogError($"Could not find game or gameaction from datamodel {e.datamodel} @ beat {e.beat}, skipping entity");
|
||||
continue;
|
||||
}
|
||||
// Debug.Log($"{game.name} {action.displayName} @ beat {e.beat}");
|
||||
|
||||
Dictionary<string, dynamic> dynamicData = new Dictionary<string, dynamic>();
|
||||
|
|
Loading…
Reference in a new issue