<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hedgedocs.com/index.php?action=history&amp;feed=atom&amp;title=NN_Chunk_Format_-_NODENAMELIST</id>
	<title>NN Chunk Format - NODENAMELIST - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hedgedocs.com/index.php?action=history&amp;feed=atom&amp;title=NN_Chunk_Format_-_NODENAMELIST"/>
	<link rel="alternate" type="text/html" href="https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_NODENAMELIST&amp;action=history"/>
	<updated>2026-04-17T08:18:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_NODENAMELIST&amp;diff=190&amp;oldid=prev</id>
		<title>PTKay: Created page with &quot;== NNE_NODENAME_SORTTYPE == {{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&#039;s always an &lt;code&gt;int32_t&lt;/code&gt; in all known NN games.}} This enum indicates the way the NNS_NODENAME structs are sorted in the &lt;code&gt;pNodeNameList&lt;/code&gt; array used in the NNS_NODENAMELIST.&lt;syntaxhighlight...&quot;</title>
		<link rel="alternate" type="text/html" href="https://hedgedocs.com/index.php?title=NN_Chunk_Format_-_NODENAMELIST&amp;diff=190&amp;oldid=prev"/>
		<updated>2025-02-21T10:40:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== NNE_NODENAME_SORTTYPE == {{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&amp;#039;s always an &amp;lt;code&amp;gt;int32_t&amp;lt;/code&amp;gt; in all known NN games.}} This enum indicates the way the &lt;a href=&quot;/index.php/NN_Chunk_Format_-_NODENAMELIST#NNS_NODENAME&quot; title=&quot;NN Chunk Format - NODENAMELIST&quot;&gt;NNS_NODENAME&lt;/a&gt; structs are sorted in the &amp;lt;code&amp;gt;pNodeNameList&amp;lt;/code&amp;gt; array used in the &lt;a href=&quot;/index.php/NN_Chunk_Format_-_NODENAMELIST#NNS_NODENAMELIST&quot; title=&quot;NN Chunk Format - NODENAMELIST&quot;&gt;NNS_NODENAMELIST&lt;/a&gt;.&amp;lt;syntaxhighlight...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== NNE_NODENAME_SORTTYPE ==&lt;br /&gt;
{{Notice|type=note|content=The underlying type of this enum is not specified, thus it may differ depending on the platform. In practice, it&amp;#039;s always an &amp;lt;code&amp;gt;int32_t&amp;lt;/code&amp;gt; in all known NN games.}}&lt;br /&gt;
This enum indicates the way the [[NN Chunk Format - NODENAMELIST#NNS NODENAME|NNS_NODENAME]] structs are sorted in the &amp;lt;code&amp;gt;pNodeNameList&amp;lt;/code&amp;gt; array used in the [[NN Chunk Format - NODENAMELIST#NNS NODENAMELIST|NNS_NODENAMELIST]].&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
enum NNE_NODENAME_SORTTYPE&lt;br /&gt;
{&lt;br /&gt;
  // The NNS_NODENAME structs are sorted by their&lt;br /&gt;
  // [iNode] index field, from least to greatest.&lt;br /&gt;
  NNE_NODENAME_SORTTYPE_INDEX,&lt;br /&gt;
&lt;br /&gt;
  // The NNS_NODENAME structs are sorted by their&lt;br /&gt;
  // [Name] field, ordered as if by C&amp;#039;s strcmp.&lt;br /&gt;
  NNE_NODENAME_SORTTYPE_NAME&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NNS_NODENAMELIST ==&lt;br /&gt;
{{Notice|type=note|content=This is the root struct for all NODENAMELIST data chunks.}}&lt;br /&gt;
A list of the names for the nodes (bones) that make up an object (model).&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
struct NNS_NODENAMELIST&lt;br /&gt;
{&lt;br /&gt;
  // The way the NNS_NODENAME structs in&lt;br /&gt;
  // the [pNodeNameList] array are sorted.&lt;br /&gt;
  NNE_NODENAME_SORTTYPE SortType;&lt;br /&gt;
&lt;br /&gt;
  // The number of elements in the [pNodeNameList] array.&lt;br /&gt;
  int32_t nNode;&lt;br /&gt;
&lt;br /&gt;
  // An array of NNS_NODENAME structs.&lt;br /&gt;
  NNS_NODENAME* pNodeNameList;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Macros used by Text-Form files:&lt;br /&gt;
#define NODENAMELIST(SortType, nNode, pNodeNameList) { SortType, nNode, pNodeNameList }&lt;br /&gt;
#define NDNL_TYPE(SortType) (SortType)&lt;br /&gt;
#define NDNL_N_NODE(nNode) (nNode)&lt;br /&gt;
#define NDNL_NAMELIST(pNodeNameList) (pNodeNameList)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NNS_NODENAME ==&lt;br /&gt;
A name for a single node (bone).&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
struct NNS_NODENAME&lt;br /&gt;
{&lt;br /&gt;
  // The index of the node, in the [pNodeList]&lt;br /&gt;
  // array in the corresponding NNS_OBJECT.&lt;br /&gt;
  int32_t iNode;&lt;br /&gt;
&lt;br /&gt;
  // The name of the node.&lt;br /&gt;
  const char* Name;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
// Macros used by Text-Form files:&lt;br /&gt;
#define NODENAME(iNode, Name) { iNode, Name }&lt;br /&gt;
#define NDNM_IDX(iNode) (iNode)&lt;br /&gt;
#define NDNM_NAME(Name) (Name)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>PTKay</name></author>
	</entry>
</feed>