From a5b6dc1789f2e06a26fe6a0510aee04aeccdc70b Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 3 Mar 2011 22:01:38 +0100 Subject: tidying up a bit, also it compiles now --- NW4RTools/Models/Material.cs | 5 +++++ NW4RTools/Models/Model.cs | 11 +++++++++++ NW4RTools/Models/Shape.cs | 3 +++ 3 files changed, 19 insertions(+) (limited to 'NW4RTools/Models') diff --git a/NW4RTools/Models/Material.cs b/NW4RTools/Models/Material.cs index 9e90348..0bf0acc 100644 --- a/NW4RTools/Models/Material.cs +++ b/NW4RTools/Models/Material.cs @@ -58,6 +58,11 @@ namespace NW4RTools.Models { public byte[] TexCoordGenDL; public Material() { + IndirectTexMtxCalcMethod1 = new byte[4]; + IndirectTexMtxCalcMethod2 = new byte[4]; + TexObj = new byte[8][]; + // todo + TextureInfos = new List(); } } } diff --git a/NW4RTools/Models/Model.cs b/NW4RTools/Models/Model.cs index 71edaf3..7c7e912 100644 --- a/NW4RTools/Models/Model.cs +++ b/NW4RTools/Models/Model.cs @@ -40,6 +40,17 @@ namespace NW4RTools.Models { public Model() { + Bytecode = new ResDict(); + Nodes = new ResDict(); + VtxPosData = new ResDict(); + VtxNrmData = new ResDict(); + VtxClrData = new ResDict(); + VtxTexCoordData = new ResDict(); + Materials = new ResDict(); + Shaders = new ResDict(); + Shapes = new ResDict(); + PairingLookupByTexture = new ResDict>(); + PairingLookupByPalette = new ResDict>(); } } } diff --git a/NW4RTools/Models/Shape.cs b/NW4RTools/Models/Shape.cs index 87bf370..93ff70b 100644 --- a/NW4RTools/Models/Shape.cs +++ b/NW4RTools/Models/Shape.cs @@ -24,6 +24,9 @@ namespace NW4RTools.Models { public UInt16[] ExtraData; public Shape() { + Unk = new byte[12]; + ClrData = new VertexClrData[2]; + TexCoordData = new VertexTexCoordData[8]; } } } -- cgit v1.2.3