forked from DodoCooker/ArkSavegameToolkit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-worked read of cryo/trap references to read all data in forward-on…
…ly before re-parenting and adding to Objects in a parallel loop. (#8) GameObject constructor and LoadProperties methods both still use name tables internally which need to be read in single threaded to prevent mis-reads and possible duplication. Added defensive check to ensure redictors array contains the index we're trying to read. Had one that only had a "Settings" redirector for a Soul Trap and no "Dino" redirector.
- Loading branch information
1 parent
fc38c04
commit c07123a
Showing
2 changed files
with
111 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace SavegameToolkit.Types | ||
{ | ||
internal class StoredItemOffset | ||
{ | ||
public GameObject ParentObject { get; internal set; } | ||
public long ObjectOffset { get; internal set; } | ||
} | ||
} |