made rh engine classes public

This commit is contained in:
Sem van der Hoeven
2020-09-30 11:44:00 +02:00
parent 3494f678e3
commit c5b9a7ec09
5 changed files with 5 additions and 20 deletions

View File

@@ -12,6 +12,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Message\Message.csproj" /> <ProjectReference Include="..\Message\Message.csproj" />
<ProjectReference Include="..\ProftaakRH\ProftaakRH.csproj" /> <ProjectReference Include="..\ProftaakRH\ProftaakRH.csproj" />
<ProjectReference Include="..\RH-Engine\RH-Engine.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,6 +1,7 @@
using System; using System;
using Hardware; using Hardware;
using Hardware.Simulators; using Hardware.Simulators;
using RH_Engine;
namespace Client namespace Client
{ {

View File

@@ -4,7 +4,7 @@ using System;
namespace RH_Engine namespace RH_Engine
{ {
class Command public class Command
{ {
public const string STANDARD_HEAD = "Head"; public const string STANDARD_HEAD = "Head";
public const string STANDARD_GROUND = "GroundPlane"; public const string STANDARD_GROUND = "GroundPlane";

View File

@@ -3,7 +3,7 @@ using System;
namespace RH_Engine namespace RH_Engine
{ {
class JSONParser public class JSONParser
{ {
/// <summary> /// <summary>
/// returns all the users from the given response /// returns all the users from the given response

View File

@@ -10,7 +10,7 @@ namespace RH_Engine
{ {
public delegate void HandleSerial(string message); public delegate void HandleSerial(string message);
class Program public class Program
{ {
private static PC[] PCs = { private static PC[] PCs = {
//new PC("DESKTOP-M2CIH87", "Fabian"), //new PC("DESKTOP-M2CIH87", "Fabian"),
@@ -161,23 +161,6 @@ namespace RH_Engine
}); });
Console.WriteLine("id of head " + GetId(Command.STANDARD_HEAD, stream, mainCommand)); Console.WriteLine("id of head " + GetId(Command.STANDARD_HEAD, stream, mainCommand));
//command = mainCommand.AddModel("car", "data\\customModels\\TeslaRoadster.fbx");
//WriteTextMessage(stream, command);
//command = mainCommand.addPanel();
// WriteTextMessage(stream, command);
// string response = ReadPrefMessage(stream);
// Console.WriteLine("add Panel response: \n\r" + response);
// string uuidPanel = JSONParser.getPanelID(response);
// WriteTextMessage(stream, mainCommand.ClearPanel(uuidPanel));
// Console.WriteLine(ReadPrefMessage(stream));
// WriteTextMessage(stream, mainCommand.bikeSpeed(uuidPanel, 2.42));
// Console.WriteLine(ReadPrefMessage(stream));
// WriteTextMessage(stream, mainCommand.ColorPanel(uuidPanel));
// Console.WriteLine("Color panel: " + ReadPrefMessage(stream));
// WriteTextMessage(stream, mainCommand.SwapPanel(uuidPanel));
// Console.WriteLine("Swap panel: " + ReadPrefMessage(stream));
} }
/// <summary> /// <summary>