Ejemplo n.º 1
0
 public static void AssignKeys(ThinkNode rootNode, int startHash)
 {
     Rand.PushState(startHash);
     foreach (ThinkNode thinkNode in rootNode.ThisAndChildrenRecursive)
     {
         thinkNode.SetUniqueSaveKey(ThinkTreeKeyAssigner.NextUnusedKeyFor(thinkNode));
     }
     Rand.PopState();
 }
Ejemplo n.º 2
0
 public static void AssignSingleKey(ThinkNode node, int startHash)
 {
     Rand.PushState(startHash);
     node.SetUniqueSaveKey(ThinkTreeKeyAssigner.NextUnusedKeyFor(node));
     Rand.PopState();
 }