add FixtureProtocol

This commit is contained in:
Michael Becker 2023-02-17 17:44:49 -05:00
parent 4d2a77cf10
commit 39c2d41458
No known key found for this signature in database
GPG Key ID: DA394832305DA332
3 changed files with 33 additions and 0 deletions

View File

@ -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();

View File

@ -0,0 +1,30 @@
//
// FixtureProtocol.cs
//
// Author:
// Michael Becker <alcexhim@gmail.com>
//
// 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 <http://www.gnu.org/licenses/>.
using System;
namespace UniversalEditor.ObjectModels.Lighting.Fixture
{
public enum FixtureProtocol
{
Unknown,
DMX,
Pixel
}
}

View File

@ -51,6 +51,7 @@
<Compile Include="ObjectModels\Lighting\Script\TrackEntry.cs" />
<Compile Include="ObjectModels\Lighting\Script\TrackEntryCommand.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ObjectModels\Lighting\Fixture\FixtureProtocol.cs" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />