Files
UnrealEngineUWP/Engine/Source/Programs/nDisplayLauncher/Cluster/Config/Entity/EntityWindow.cs
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -05:00

50 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using nDisplayLauncher.Log;
namespace nDisplayLauncher.Cluster.Config.Entity
{
public class EntityWindow : EntityBase
{
public string Id { get; set; } = string.Empty;
public bool IsFullscreen { get; set; } = false;
public int WinX { get; set; } = -1;
public int WinY { get; set; } = -1;
public int ResX { get; set; } = -1;
public int ResY { get; set; } = -1;
public List<string> Viewports { get; set; } = new List<string>();
public EntityWindow()
{
}
public EntityWindow(string text)
{
try
{
InitializeFromText(text);
}
catch (Exception ex)
{
AppLogger.Log(ex.Message);
}
}
public override void InitializeFromText(string text)
{
Id = Parser.GetStringValue(text, "id");
IsFullscreen = Parser.GetBoolValue(text, "fullscreen", false);
WinX = Parser.GetIntValue(text, "winx", -1);
WinY = Parser.GetIntValue(text, "winy", -1);
ResX = Parser.GetIntValue(text, "resx", -1);
ResY = Parser.GetIntValue(text, "resy", -1);
Viewports = Parser.GetStringArrayValue(text, "viewports");
}
}
}