From 39c2d4145843eee6fa038da717430ea96605ffbd Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 17 Feb 2023 17:44:49 -0500 Subject: [PATCH] add FixtureProtocol --- .../Lighting/Fixture/FixtureObjectModel.cs | 2 ++ .../Lighting/Fixture/FixtureProtocol.cs | 30 +++++++++++++++++++ .../UniversalEditor.Plugins.Lighting.csproj | 1 + 3 files changed, 33 insertions(+) create mode 100644 Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureProtocol.cs diff --git a/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureObjectModel.cs b/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureObjectModel.cs index f0d0867b..ac207824 100644 --- a/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureObjectModel.cs +++ b/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureObjectModel.cs @@ -75,6 +75,8 @@ namespace UniversalEditor.ObjectModels.Lighting.Fixture private FixtureTask.FixtureTaskCollection mvarTasks = new FixtureTask.FixtureTaskCollection(); public FixtureTask.FixtureTaskCollection Tasks { get { return mvarTasks; } } + public FixtureProtocol Protocol { get; set; } = FixtureProtocol.Unknown; + public override string ToString() { StringBuilder sb = new StringBuilder(); diff --git a/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureProtocol.cs b/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureProtocol.cs new file mode 100644 index 00000000..09f6637d --- /dev/null +++ b/Plugins/UniversalEditor.Plugins.Lighting/ObjectModels/Lighting/Fixture/FixtureProtocol.cs @@ -0,0 +1,30 @@ +// +// FixtureProtocol.cs +// +// Author: +// Michael Becker +// +// Copyright (c) 2022 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System; +namespace UniversalEditor.ObjectModels.Lighting.Fixture +{ + public enum FixtureProtocol + { + Unknown, + DMX, + Pixel + } +} diff --git a/Plugins/UniversalEditor.Plugins.Lighting/UniversalEditor.Plugins.Lighting.csproj b/Plugins/UniversalEditor.Plugins.Lighting/UniversalEditor.Plugins.Lighting.csproj index 9639b0db..5e6e7cde 100644 --- a/Plugins/UniversalEditor.Plugins.Lighting/UniversalEditor.Plugins.Lighting.csproj +++ b/Plugins/UniversalEditor.Plugins.Lighting/UniversalEditor.Plugins.Lighting.csproj @@ -51,6 +51,7 @@ +