fully added the vr engine stuff to the client app

This commit is contained in:
Sem van der Hoeven
2020-10-14 12:21:53 +02:00
parent 22021dc821
commit 568896c28d
3 changed files with 98 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
namespace RH_Engine
@@ -122,5 +123,19 @@ namespace RH_Engine
}
return null;
}
public static string GetChildUuid(string name, JArray children)
{
foreach (dynamic child in children)
{
if (child.name == name)
{
return child.uuid;
}
}
Console.WriteLine("Could not find id of " + name);
return null;
}
}
}