Commit alt code of VR engine
This commit is contained in:
@@ -25,6 +25,20 @@ namespace RH_Engine
|
||||
return res;
|
||||
}
|
||||
|
||||
public static string GetIdSceneInfoChild(string msg, string nodeName)
|
||||
{
|
||||
dynamic jsonData = JsonConvert.DeserializeObject(msg);
|
||||
Newtonsoft.Json.Linq.JArray children = jsonData.data.data.data.children;
|
||||
foreach (dynamic d in children)
|
||||
{
|
||||
if (d.name == nodeName)
|
||||
{
|
||||
return d.uuid;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static string GetSessionID(string msg, PC[] PCs)
|
||||
{
|
||||
dynamic jsonData = JsonConvert.DeserializeObject(msg);
|
||||
@@ -45,6 +59,12 @@ namespace RH_Engine
|
||||
return null;
|
||||
}
|
||||
|
||||
public static bool GetStatus(string json)
|
||||
{
|
||||
dynamic jsonData = JsonConvert.DeserializeObject(json);
|
||||
return jsonData.data.data.status == "ok";
|
||||
}
|
||||
|
||||
public static string GetSerial(string json)
|
||||
{
|
||||
dynamic jsonData = JsonConvert.DeserializeObject(json);
|
||||
|
||||
Reference in New Issue
Block a user