added standard name identifiers

This commit is contained in:
Sem van der Hoeven
2020-09-18 12:18:32 +02:00
parent 2b80dbad47
commit 9ff2eb4e68
2 changed files with 14 additions and 15 deletions

View File

@@ -8,8 +8,16 @@ namespace RH_Engine
{
class CreateGraphics
{
string tunnelID;
public const string STANDARD_HEAD = "Head";
public const string STANDARD_GROUND = "GroundPlane";
public const string STANDARD_SUN = "SunLight";
public const string STANDARD_LEFTHAND = "LeftHand";
public const string STANDARD_RIGHTHAND = "RightHand";
string tunnelID;
public CreateGraphics(string tunnelID)
{
this.tunnelID = tunnelID;
@@ -60,18 +68,6 @@ namespace RH_Engine
public string RouteCommand()
{
dynamic payload = new
{
id = "route/add",
data = new
{
nodes = new dynamic[]
{
pos = new int[]{ 0,0,0},
dir = new int[]{ 5,0,-5}
}
}
};
return "";
}
@@ -137,5 +133,8 @@ namespace RH_Engine
}
};
}
}
}

View File

@@ -96,7 +96,7 @@ namespace RH_Engine
//string command = createGraphics.TerrainCommand(new int[] { 256, 256 }, heigths);
string groundId = GetId("GroundPlane", stream, createGraphics);
Console.WriteLine(groundId);
Console.WriteLine("ground id: " + groundId);
string command = createGraphics.DeleteGroundPaneCommand(groundId);
//string command = createGraphics.ResetScene();
Console.WriteLine("tunnelID is: " + tunnelID);
@@ -110,7 +110,7 @@ namespace RH_Engine
{
WriteTextMessage(stream, createGraphics.GetSceneInfoCommand());
dynamic response = JsonConvert.DeserializeObject(ReadPrefMessage(stream));
dynamic[] children = response.data.data.data.children;
JArray children = response.data.data.data.children;
foreach (dynamic child in children)
{