From e55b0486e6b9ecdbcdd630a6b3cfa28503b85fdd Mon Sep 17 00:00:00 2001 From: kypdurron Date: Sat, 21 Nov 2015 10:37:33 +0100 Subject: [PATCH] Updated : Add Handler for NiShadeProperty. --- Niflib.csproj | 1 + Niflib/NiShadeProperty.cs | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Niflib/NiShadeProperty.cs diff --git a/Niflib.csproj b/Niflib.csproj index c0421d4..4df4429 100644 --- a/Niflib.csproj +++ b/Niflib.csproj @@ -198,6 +198,7 @@ + diff --git a/Niflib/NiShadeProperty.cs b/Niflib/NiShadeProperty.cs new file mode 100644 index 0000000..0c9ac90 --- /dev/null +++ b/Niflib/NiShadeProperty.cs @@ -0,0 +1,42 @@ +/* + * DAWN OF LIGHT - The first free open source DAoC server emulator + * + * 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 2 + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + + +namespace Niflib +{ + using System; + using System.IO; + + /// + /// Class NiShadeProperty. + /// + public class NiShadeProperty : NiProperty + { + public ushort Flags; + /// + /// Initializes a new instance of the class. + /// + /// The file. + /// The reader. + public NiShadeProperty(NiFile file, BinaryReader reader) : base(file, reader) + { + Flags = reader.ReadUInt16(); + } + } +}