conflicts 3: revelations

This commit is contained in:
Sem van der Hoeven
2020-09-18 16:01:25 +02:00
2 changed files with 53 additions and 7 deletions

View File

@@ -106,8 +106,10 @@ namespace RH_Engine
WriteTextMessage(stream, createGraphics.RouteCommand());
Console.WriteLine("data: " + ReadPrefMessage(stream));
//WriteTextMessage(stream, createGraphics.GetSceneInfoCommand());
//add monkey head
//WriteTextMessage(stream, createGraphics.AddModel("Face", "data\\vrlib\\rendermodels\\face\\face.obj", new float[] { 0, 3, 0 }, 10, new float[] { 0, 0, 0 }));
//string headUuid = getUUIDFormResponse(ReadPrefMessage(stream));
//Console.WriteLine("data: " + ReadPrefMessage(stream));
}
@@ -182,6 +184,12 @@ namespace RH_Engine
}
public static string getUUIDFromResponse(string response)
{
dynamic JSON = JsonConvert.DeserializeObject(response);
return JSON.data.data.data.uuid;
}
}
/// <summary>