Collisions editing progress

This commit is contained in:
dexy
2020-01-06 22:17:51 +11:00
Unverified
parent 0d066679cb
commit 33dc83c0e0
13 changed files with 1390 additions and 216 deletions
File diff suppressed because it is too large Load Diff
@@ -648,6 +648,11 @@ namespace CodeWalker.GameFiles
this.Unknown_140h_Pointer // offset
);
if (Bound != null)
{
Bound.Owner = this;
}
if (Unknown_70h?.data_items?.Length > 0)
{ }
if (Unknown_80h?.data_items?.Length > 0)
@@ -1132,6 +1137,11 @@ namespace CodeWalker.GameFiles
this.BoundPointer // offset
);
if (Bound != null)
{
Bound.Owner = this;
}
}
/// <summary>
@@ -2768,6 +2768,12 @@ namespace CodeWalker.GameFiles
this.Bound = reader.ReadBlockAt<Bounds>(
this.BoundPointer // offset
);
if (Bound != null)
{
Bound.Owner = this;
}
}
catch (Exception ex) //sometimes error here for loading particles! different drawable type? base only?
{
@@ -453,6 +453,11 @@ namespace CodeWalker.GameFiles
FragMatrices = reader.ReadStructsAt<Matrix>(FragMatricesPointer, FragMatricesCount);
Name = reader.ReadStringAt(NamePointer);
if (Bound != null)
{
Bound.Owner = this;
}
if ((Count3 != Count4)&&(Count4!=1)&&(Count3!=0))
{ }
if (FragMatricesInds != null)
@@ -1272,6 +1277,11 @@ namespace CodeWalker.GameFiles
}
}
}
if (Bound != null)
{
Bound.Owner = this;
}
}
/// <summary>
@@ -2123,6 +2133,11 @@ namespace CodeWalker.GameFiles
this.Bound = reader.ReadBlockAt<Bounds>(
this.BoundPointer // offset
);
if (Bound != null)
{
Bound.Owner = this;
}
}
/// <summary>
@@ -828,7 +828,7 @@ namespace CodeWalker.GameFiles
public uint EntriesCapacity { get; private set; }
// reference data
public T[] data_items { get; private set; }
public T[] data_items { get; set; }
private ResourceSystemStructBlock<T> data_block;//used for saving.