Files
UnrealEngineUWP/Engine/Source/Programs/nDisplayLauncher/Cluster/Config/Entity/EntityClusterNode.cs
Patrick Boutot b67ff68e04 Copying //UE4/Dev-VirtualProduction to //UE4/Dev-Tools-Staging @ 11168401
#rb none
#rnx

[CL 11170710 by Patrick Boutot in Dev-Tools-Staging branch]
2020-01-29 18:45:15 -05:00

52 lines
1.4 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using nDisplayLauncher.Log;
using System;
namespace nDisplayLauncher.Cluster.Config.Entity
{
public class EntityClusterNode : EntityBase
{
public string Id { get; set; } = string.Empty;
public string Window { get; set; } = string.Empty;
public bool HasSound { get; set; } = false;
public bool IsMaster { get; set; } = false;
public string Addr { get; set; } = string.Empty;
public int PortCS { get; set; } = 0;
public int PortSS { get; set; } = 0;
public int PortCE { get; set; } = 0;
public int GPU { get; set; } = 0;
public EntityClusterNode()
{
}
public EntityClusterNode(string text)
{
try
{
InitializeFromText(text);
}
catch (Exception ex)
{
AppLogger.Log(ex.Message);
}
}
public override void InitializeFromText(string text)
{
Id = Parser.GetStringValue(text, "id");
Window = Parser.GetStringValue(text, "window");
HasSound = Parser.GetBoolValue(text, "sound", false);
IsMaster = Parser.GetBoolValue(text, "master", false);
Addr = Parser.GetStringValue(text, "addr");
PortCS = Parser.GetIntValue(text, "port_cs", 41001);
PortSS = Parser.GetIntValue(text, "port_ss", 41002);
PortCE = Parser.GetIntValue(text, "port_ce", 41003);
GPU = Parser.GetIntValue(text, "gpu", int.MinValue);
}
}
}