senior gesprek fixes

This commit is contained in:
Sem van der Hoeven
2020-09-16 16:04:21 +02:00
parent c171f15316
commit 5f65eb32fd
4 changed files with 8 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ namespace RH_Engine
return sb.ToString();
}
public string SkyboxCommand(int time)
public string SkyboxCommand(double time)
{
if (time < 0 || time > 24)
{

View File

@@ -34,8 +34,9 @@ namespace RH_Engine
{
dynamic jsonData = JsonConvert.DeserializeObject(msg);
Newtonsoft.Json.Linq.JArray data = jsonData.data;
foreach (dynamic d in data)
for (int i = data.Count-1; i >= 0; i--)
{
dynamic d = data[i];
foreach (PC pc in PCs)
{
if (d.clientinfo.host == pc.host && d.clientinfo.user == pc.user)

View File

@@ -12,8 +12,8 @@ namespace RH_Engine
internal class Program
{
private static PC[] PCs = {
//new PC("DESKTOP-M2CIH87", "Fabian"),
//new PC("T470S", "Shinichi"),
new PC("DESKTOP-M2CIH87", "Fabian"),
new PC("T470S", "Shinichi"),
new PC("DESKTOP-DHS478C", "semme"),
new PC("DESKTOP-TV73FKO", "Wouter"),
new PC("NA", "Ralf"),
@@ -23,6 +23,7 @@ namespace RH_Engine
TcpClient client = new TcpClient("145.48.6.10", 6666);
CreateConnection(client.GetStream());
Console.Read();
}
@@ -85,7 +86,7 @@ namespace RH_Engine
}
CreateGraphics createGraphics = new CreateGraphics(tunnelID);
string command = createGraphics.SkyboxCommand(10);
string command = createGraphics.SkyboxCommand(2);
Console.WriteLine("tunnelID is: " + tunnelID);