Re: [Pipmak-Users] Node names
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-12-15 23:00:47
|
Urs Holzer wrote: > The nodes must be named by numbers, right? Are there any further > restrictions? Does it matter if there are some numbers in between that > are no nodes? I.e. does it matter if there are the nodes 1, 2, 4, 5 but > if there is no node 3? This is perfectly acceptable. The numbers do not need to be consecutive (as seen in the demo project). > Which is the highest number possible? I.e. do you expect it to be a 32-bit integer? Good question. The node IDs are stored as int on the C side and as double on the Lua side, so that should allow you 1 to 2147483647 on a typical 32-bit platform. Unless there are any other limitations in the code that I've missed right now. However, there are no checks for this, so using higher numbers might get you unpredictable results. Zero and negatives are reserved for internal use (main menu, Lua command line, etc.). > Sorry if this question is answered by the documentation. It actually isn't (at least not clear enough). I'll add a note about it. -Christian |