Loading all CMloArchetypeDef child objects.

This commit is contained in:
dexyfex
2018-01-02 15:37:09 +11:00
Unverified
parent 4cbf85bd03
commit 48fe9cee9b
5 changed files with 482 additions and 148 deletions
+12
View File
@@ -106,12 +106,24 @@ namespace CodeWalker.GameFiles
var ptr = AddItemArray(type, items);
return new Array_Structure(ptr);
}
public Array_Vector3 AddPaddedVector3ArrayPtr(SharpDX.Vector4[] items)
{
if ((items == null) || (items.Length == 0)) return new Array_Vector3();
var ptr = AddItemArray(MetaName.VECTOR4, items); //padded to vec4...
return new Array_Vector3(ptr);
}
public Array_uint AddHashArrayPtr(MetaHash[] items)
{
if ((items == null) || (items.Length == 0)) return new Array_uint();
var ptr = AddItemArray(MetaName.HASH, items);
return new Array_uint(ptr);
}
public Array_uint AddUintArrayPtr(uint[] items)
{
if ((items == null) || (items.Length == 0)) return new Array_uint();
var ptr = AddItemArray(MetaName.HASH, items);
return new Array_uint(ptr);
}
public Array_ushort AddUshortArrayPtr(ushort[] items)
{
if ((items == null) || (items.Length == 0)) return new Array_ushort();