Unrecognized entity support (#191)

Due to some recent discoveries about a certain upcoming rhythm game, I have added support for unrecognized entities found in remix.json to be loaded and moved, and be able to save them.
This commit is contained in:
Zeo
2023-01-06 21:59:54 -06:00
committed by GitHub
parent 87d20b8c8f
commit ddc183acdd
3 changed files with 72 additions and 15 deletions

View File

@ -599,14 +599,18 @@ namespace HeavenStudio
{
if (gameInfo.fxOnly)
{
name = Beatmap.entities.FindAll(c => {
var gameEntities = Beatmap.entities.FindAll(c => {
var gameName = c.datamodel.Split(0);
var newGameInfo = GetGameInfo(gameName);
if (newGameInfo == null)
return false;
else
return !newGameInfo.fxOnly;
}).ToList()[0].datamodel.Split(0);
}).ToList();
if (gameEntities.Count != 0)
name = gameEntities[0].datamodel.Split(0);
else
name = "noGame";
}
else
{