Exemple #1
0
AssetTree::Item
AssetTree::addGroup (const String& name)
{
    Item item (createItem ("group"));
    item.getNameValue() = name;
    item.setId (Utility::createAlphaNumericUID ());
    addChildInternal (assets, item.data);
    
    std::clog << item.data.toXmlString() << std::endl;
    
    return item;
}
Exemple #2
0
bool GraphicsLayer::setChildren(const GraphicsLayerVector& newChildren)
{
    // If the contents of the arrays are the same, nothing to do.
    if (newChildren == m_children)
        return false;

    removeAllChildren();

    size_t listSize = newChildren.size();
    for (size_t i = 0; i < listSize; ++i)
        addChildInternal(newChildren[i]);

    updateChildList();

    return true;
}
Exemple #3
0
void GraphicsLayer::addChild(GraphicsLayer* childLayer)
{
    addChildInternal(childLayer);
    updateChildList();
}
 void FSMNode::addChild(std::string path, L result) {
   addChildInternal(path.begin(), path.end(), result);
 }