Began adding creature templates to libraries
This commit is contained in:
@@ -117,7 +117,7 @@ function insertPropertyFromNode(nodeId, root, parentId) {
|
||||
return node;
|
||||
}
|
||||
|
||||
function storeLibraryNodeReferences(nodes) {
|
||||
export function storeLibraryNodeReferences(nodes) {
|
||||
nodes.forEach(node => {
|
||||
if (node.libraryNodeId) return;
|
||||
node.libraryNodeId = node._id;
|
||||
@@ -126,7 +126,7 @@ function storeLibraryNodeReferences(nodes) {
|
||||
|
||||
// Covert node references into actual nodes
|
||||
// TODO: check permissions for each library a reference node references
|
||||
function reifyNodeReferences(nodes, visitedRefs = new Set(), depth = 0) {
|
||||
export function reifyNodeReferences(nodes, visitedRefs = new Set(), depth = 0) {
|
||||
depth += 1;
|
||||
// New nodes added this function
|
||||
let newNodes = [];
|
||||
|
||||
Reference in New Issue
Block a user