Need to document this tooling (I need to remember myself as well)
var linkCache = ...;
var worldspaceCache =
new WorldspaceCellLocationCache(state.LoadOrder.PriorityOrder.Cell()
.WinningContextOverrides(state.LinkCache));
foreach (var placedObjectGetter in state.LoadOrder.PriorityOrder.PlacedObject()
.WinningContextOverrides(state.LinkCache))
{
if (placedObjectGetter.TryGetContainingCell(worldspaceCache, out var cell))
{
// Found the parent cell, whether it was interior, or exterior
}
}
essentially used to find both interior and exterior setups, as the exteriors are more complex with worldspace coords and all that
Need to document this tooling (I need to remember myself as well)
essentially used to find both interior and exterior setups, as the exteriors are more complex with worldspace coords and all that