added standard name identifiers
This commit is contained in:
@@ -8,6 +8,14 @@ namespace RH_Engine
|
||||
{
|
||||
class CreateGraphics
|
||||
{
|
||||
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)
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user