Skip to content

Commit 9dde0b1

Browse files
committed
mod: expose selector-to-host-world attachment resolver
1 parent 6c013d9 commit 9dde0b1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎include/dmc_rengine/formats/mod/attachment.hpp‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "dmc_rengine/formats/mod/world_transform.hpp"
55

66
#include <cstdint>
7+
#include <span>
78

89
namespace dmc::rengine::formats::mod::attachment {
910

@@ -28,6 +29,14 @@ struct DefaultJointResolution final {
2829
}
2930
};
3031

32+
// Resolve one already-decoded default-joint selector against an explicit host
33+
// world-matrix domain. This overload lets platform-neutral consumers retain
34+
// their own typed scene projection while keeping selector/index semantics in
35+
// canonical Rengine code.
36+
[[nodiscard]] DefaultJointResolution resolve_default_joint(
37+
std::uint8_t selector,
38+
std::span<const world_transform::Matrix4f> host_world) noexcept;
39+
3140
// Resolve the child MOD default_joint_index against one explicit host MOD.
3241
//
3342
// Evidence boundary:

0 commit comments

Comments
 (0)