using System; using System.Collections.Generic; namespace NW4RTools.Models { public class Shader { public UInt32 Index; public byte TevStageCount; public UInt32 Unk1, Unk2; // TODO: figure these out public byte[] DisplayList; public Shader() { } public bool DataMatches(Shader another) { if (another.TevStageCount != TevStageCount) return false; if (another.Unk1 != Unk1 || another.Unk2 != Unk2) return false; if (another.DisplayList.Length != DisplayList.Length) return false; for (int i = 0; i < DisplayList.Length; i++) { if (another.DisplayList[i] != DisplayList[i]) return false; } return true; } } }