diff --git a/hedgedocs/docs/nn/common/chunk-format/index.md b/hedgedocs/docs/nn/common/chunk-format/index.md index 11f842f3..d3e64807 100644 --- a/hedgedocs/docs/nn/common/chunk-format/index.md +++ b/hedgedocs/docs/nn/common/chunk-format/index.md @@ -83,7 +83,7 @@ All known data chunk types are listed in the following chart: | -- | -- | ----------------------------------- | ----------------------------------------------------------------- | | TL | t | [TEXLIST](texlist.md) | A list of textures. | | EF | ? | EFFECTLIST | A list of effects (shaders). | -| NN | a | NODENAMELIST | A list of names for the nodes (bones) within an object (a model). | +| NN | a | [NODENAMELIST](nodenamelist.md) | A list of names for the nodes (bones) within an object (a model). | | OB | o | OBJECT | A model. | | CA | ? | CAMERA | Camera parameters. | | MO | m | MOTION (node) | A node (bone) animation. | diff --git a/hedgedocs/docs/nn/common/chunk-format/nodenamelist.md b/hedgedocs/docs/nn/common/chunk-format/nodenamelist.md new file mode 100644 index 00000000..fd899ce7 --- /dev/null +++ b/hedgedocs/docs/nn/common/chunk-format/nodenamelist.md @@ -0,0 +1,60 @@ +--- +description: Sega NN NODENAMELIST Data Chunk Format Specification +--- + +# NODENAMELIST + +## NNS_NODENAMELIST + +!!! important + This is the "main" (root) struct for all NN node (bone) name list chunks. + +```c +struct NNS_NODENAMELIST +{ + /* The sorting type */ + NNE_NODENAME_SORTTYPE SortType; + + /* The size of [pNodeNameList] array */ + uint32_t nNode; + + /* An array of NNS_NODENAME structs */ + NNS_NODENAME* pNodeNameList; +}; +``` + +!!! todo + Find the macros used in the text-form file format + +## NNS_NODENAME + +The actual node (bone) name + +```c +struct NNS_NODENAME +{ + /* The node index */ + uint32_t iNode; + + /* The node name */ + char* Name; +}; +``` + +## NNE_NODENAME_SORTTYPE + +This enum indicates the sorting type used in the node name list. + +```c +enum NNE_NODENAME_SORTTYPE +{ + /* Sorting by index */ + NNE_NODENAME_SORTTYPE_INDEX, + + /* Sorting by name */ + NNE_NODENAME_SORTTYPE_NAME +}; +``` + +!!! todo + Find the macros used in the text-form file format \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index bd79444d..1ec9ddfd 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -144,6 +144,7 @@ nav: - Common: - NN Chunk Format: - docs/nn/common/chunk-format/index.md + - NODENAMELIST: docs/nn/common/chunk-format/nodenamelist.md - TEXLIST: docs/nn/common/chunk-format/texlist.md - Discoveries: - discoveries/index.md