-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SEGA NN] NodeNameList chunk spec (#68)
* [SEGA NN] NodeNameList chunk spec * Change the type of `iNode` and add a comment in the `NNS_NODENAMELIST` struct
- Loading branch information
1 parent
b58b0b1
commit 06f3988
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters