blob: 6510110e32f9d8706a37c640d5866c4fe5594482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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;
}
}
}
|