Skip to main content
gamedev.net
🔒 Locked

Sort node

Started by luasitdown Aug 22, 2005 at 6:16 PM 0 replies 200+ views
Original Post
luasitdown
luasitdown
If I have a database for node. node has different type. and I want to put some new node in to database. the same type node put the same list. if the node type is new.and create a new list . pseudo code : node = getnode(); for (nodetype in typelist) if(nodetype==node.type) push(node)into map[nodetype]. else create nodetype; map[newtype]=node; My method is not good .Give me some good tip or code sample.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.