added bike
This commit is contained in:
@@ -16,8 +16,8 @@ namespace RH_Engine
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
string tunnelID;
|
string tunnelID;
|
||||||
|
|
||||||
public CreateGraphics(string tunnelID)
|
public CreateGraphics(string tunnelID)
|
||||||
{
|
{
|
||||||
this.tunnelID = tunnelID;
|
this.tunnelID = tunnelID;
|
||||||
@@ -53,12 +53,12 @@ namespace RH_Engine
|
|||||||
data = new
|
data = new
|
||||||
{
|
{
|
||||||
id = uuid,
|
id = uuid,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
return JsonConvert.SerializeObject(Payload(payload));
|
return JsonConvert.SerializeObject(Payload(payload));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string ModelCommand()
|
public string ModelCommand()
|
||||||
@@ -74,10 +74,10 @@ namespace RH_Engine
|
|||||||
{
|
{
|
||||||
model = new
|
model = new
|
||||||
{
|
{
|
||||||
file = "\\data\\NetworkEngine\\models\\bike\\bikee.fbx",
|
file = "data\\NetworkEngine\\models\\bike\\bike.fbx",
|
||||||
cullbackfaces = true,
|
cullbackfaces = true,
|
||||||
animated = false,
|
animated = false,
|
||||||
animation = "\\data\\NetworkEngine\\models\\bike\\bike_anim.fbx"
|
animation = "data\\NetworkEngine\\models\\bike\\bike_anim.fbx"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,6 +86,7 @@ namespace RH_Engine
|
|||||||
return JsonConvert.SerializeObject(Payload(payload));
|
return JsonConvert.SerializeObject(Payload(payload));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public string RouteCommand()
|
public string RouteCommand()
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
@@ -132,10 +133,11 @@ namespace RH_Engine
|
|||||||
dynamic payload = new
|
dynamic payload = new
|
||||||
{
|
{
|
||||||
id = "scene/skybox/settime",
|
id = "scene/skybox/settime",
|
||||||
data = new {
|
data = new
|
||||||
|
{
|
||||||
time = timeToSet
|
time = timeToSet
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
return JsonConvert.SerializeObject(Payload(payload));
|
return JsonConvert.SerializeObject(Payload(payload));
|
||||||
|
|
||||||
@@ -154,7 +156,7 @@ namespace RH_Engine
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,13 @@ 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-M2CIH87", "Fabian"),
|
||||||
new PC("T470S", "Shinichi"),
|
new PC("T470S", "Shinichi"),
|
||||||
new PC("DESKTOP-DHS478C", "semme"),
|
//new PC("DESKTOP-DHS478C", "semme"),
|
||||||
new PC("DESKTOP-TV73FKO", "Wouter"),
|
//new PC("DESKTOP-TV73FKO", "Wouter"),
|
||||||
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)
|
||||||
{
|
{
|
||||||
TcpClient client = new TcpClient("145.48.6.10", 6666);
|
TcpClient client = new TcpClient("145.48.6.10", 6666);
|
||||||
@@ -97,13 +98,23 @@ namespace RH_Engine
|
|||||||
|
|
||||||
string groundId = GetId("GroundPlane", stream, createGraphics);
|
string groundId = GetId("GroundPlane", stream, createGraphics);
|
||||||
Console.WriteLine("ground id: " + groundId);
|
Console.WriteLine("ground id: " + groundId);
|
||||||
string command = createGraphics.DeleteGroundPaneCommand(groundId);
|
string command;
|
||||||
|
//command = createGraphics.DeleteGroundPaneCommand(groundId);
|
||||||
//string command = createGraphics.ResetScene();
|
//string command = createGraphics.ResetScene();
|
||||||
|
command = createGraphics.SkyboxCommand(DateTime.Now.Millisecond % 24);
|
||||||
Console.WriteLine("tunnelID is: " + tunnelID);
|
Console.WriteLine("tunnelID is: " + tunnelID);
|
||||||
|
|
||||||
WriteTextMessage(stream, command);
|
WriteTextMessage(stream, command);
|
||||||
|
|
||||||
Console.WriteLine(ReadPrefMessage(stream));
|
Console.WriteLine(ReadPrefMessage(stream));
|
||||||
|
|
||||||
|
command = createGraphics.ModelCommand();
|
||||||
|
|
||||||
|
WriteTextMessage(stream, command);
|
||||||
|
|
||||||
|
Console.WriteLine(ReadPrefMessage(stream));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetId(string name, NetworkStream stream, CreateGraphics createGraphics)
|
public static string GetId(string name, NetworkStream stream, CreateGraphics createGraphics)
|
||||||
|
|||||||
Reference in New Issue
Block a user