This commit is contained in:
DESKTOP-TV73FK0\woute
2020-09-18 12:30:57 +02:00
parent e32d103e61
commit a655646e80
2 changed files with 23 additions and 7 deletions

View File

@@ -32,7 +32,22 @@ namespace RH_Engine
public string AddNodeCommand() public string AddNodeCommand()
{ {
return ""; dynamic payload = new
{
id = "scene/node/add",
data = new
{
name = "newNode",
components = new
{
terrain = new
{
smoothnormals = true
}
}
}
};
return JsonConvert.SerializeObject(Payload(payload));
} }
public string DeleteGroundPaneCommand() public string DeleteGroundPaneCommand()

View File

@@ -12,10 +12,10 @@ namespace RH_Engine
internal class Program internal class Program
{ {
private static PC[] PCs = { private static PC[] PCs = {
new PC("DESKTOP-M2CIH87", "Fabian"), new PC("DESKTOP-TV73FK0", "woute"),
new PC("T470S", "Shinichi"), //new PC("DESKTOP-M2CIH87", "Fabian"),
new PC("DESKTOP-DHS478C", "semme"), //new PC("T470S", "Shinichi"),
new PC("DESKTOP-TV73FKO", "Wouter"), //new PC("DESKTOP-DHS478C", "semme"),
new PC("NA", "Ralf"), new PC("NA", "Ralf"),
new PC("NA", "Bart") }; new PC("NA", "Bart") };
private static void Main(string[] args) private static void Main(string[] args)
@@ -86,14 +86,15 @@ namespace RH_Engine
} }
CreateGraphics createGraphics = new CreateGraphics(tunnelID); CreateGraphics createGraphics = new CreateGraphics(tunnelID);
string command = createGraphics.SkyboxCommand(2);
Console.WriteLine("tunnelID is: " + tunnelID); Console.WriteLine("tunnelID is: " + tunnelID);
WriteTextMessage(stream, command); WriteTextMessage(stream, createGraphics.TerrainCommand(new int[] { 2, 2 }, new int[] { 1, 1, 1, 1 }));
Console.WriteLine(ReadPrefMessage(stream)); Console.WriteLine(ReadPrefMessage(stream));
WriteTextMessage(stream, createGraphics.AddNodeCommand());
Console.WriteLine(ReadPrefMessage(stream));
} }
} }