Stage 7b: model/xml.cpp reads and writes tinyxml2 directly; Element tree removed
- Reading goes from tinyxml2 straight into the typed model, including legacy layouts (flat GroupId groups, *AnimationGroups with Index, FrameRestore backups, baked frames, SoundId, Overlay) and load-time id/region repair. - Writing builds an XmlNode tree from the typed model for a set of flags: id renumbering, region sync, group-root and interpolation baking happen on typed data; groups are nested or extracted the way the old pipeline did. - Unknown XML is kept verbatim (XmlNode) instead of being re-emitted through the Element writer. - model_hash is an FNV hash of the editor-format node tree (what a save would write); the per-fixture hash goldens are gone. - Deletes src/anm2 (Element, normalize, groups, hash, xml) and the unused util/xml attribute helpers and ElementType/ItemType table columns. - All goldens, invariants and the local corpus are byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0b6f67d9bd
commit
e50d76c784
33 files changed
+1386
-2935
No files matched your search
+1
-3
@@ -84,8 +84,6 @@ set(IMGUI_SRC
|
||||
set(TINYXML2_SRC external/tinyxml2/tinyxml2.cpp)
|
||||
|
||||
file(GLOB PROJECT_SRC CONFIGURE_DEPENDS
|
||||
src/anm2/*.cpp
|
||||
src/anm2/*.hpp
|
||||
src/resource/*.cpp
|
||||
src/resource/*.hpp
|
||||
src/imgui/*.cpp
|
||||
@@ -108,7 +106,7 @@ file(GLOB PROJECT_SRC CONFIGURE_DEPENDS
|
||||
src/*.hpp)
|
||||
|
||||
set(CORE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
file(GLOB CORE_SRC CONFIGURE_DEPENDS ${CORE_DIR}/anm2/*.cpp ${CORE_DIR}/edit/*.cpp ${CORE_DIR}/model/*.cpp)
|
||||
file(GLOB CORE_SRC CONFIGURE_DEPENDS ${CORE_DIR}/edit/*.cpp ${CORE_DIR}/model/*.cpp)
|
||||
foreach(CORE_FILE log resource/strings resource/image resource/audio_data resource/asset_store util/file util/path util/math util/string util/time util/working_directory
|
||||
util/xml util/pack util/imgui/multiselect snapshots storage playback selection)
|
||||
list(APPEND CORE_SRC ${CORE_DIR}/${CORE_FILE}.cpp)
|
||||
|
||||
Reference in new issue
Block a user