refactor(pipeline): MP1a - MeshExtractor extracted to AcDream.Content (verbatim move)

This commit is contained in:
Erik 2026-07-05 20:19:52 +02:00
parent e3376d4734
commit 30cc1e282e
6 changed files with 1260 additions and 1113 deletions

View file

@ -1,3 +1,4 @@
using AcDream.Content;
using DatReaderWriter;
using DatReaderWriter.Enums;
using DatReaderWriter.Lib.IO;

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,11 @@
using System.Numerics;
using DatReaderWriter.Types;
namespace AcDream.App.Rendering.Wb {
// MP1a (2026-07-05, Task 4): moved to AcDream.Content, namespace only —
// consumed by MeshExtractor.PrepareCellStructEdgeLineData, which must be
// GL-free.
namespace AcDream.Content {
public static class EdgeLineBuilder {
public static List<Vector3> BuildEdgeLines(CellStruct cellStruct) {
var edgeMap = new Dictionary<EdgeKey, List<Edge>>();

View file

@ -9,8 +9,13 @@ using System.Diagnostics.CodeAnalysis;
// WorldBuilder.Shared project reference can be dropped.
// The only consumer of IDatReaderWriter in acdream is DatCollectionAdapter +
// ObjectMeshManager, both already in this namespace.
//
// MP1a (2026-07-05, Task 4): moved to AcDream.Content, namespace only —
// MeshExtractor's constructor takes IDatReaderWriter and must be GL-free.
// DatCollectionAdapter (the concrete DatCollection-backed implementation)
// stays in AcDream.App; it now implements this Content-namespaced interface.
namespace AcDream.App.Rendering.Wb;
namespace AcDream.Content;
/// <summary>
/// Interface for the dat reader/writer

File diff suppressed because it is too large Load diff