Crossfire Server, Trunk
|
#include "ArtifactPanel.h"
#include "CREUtils.h"
#include "animations/AnimationWidget.h"
#include "assets.h"
#include "AssetsManager.h"
#include "Archetypes.h"
#include "assets/AssetWrapper.h"
#include "artifacts/ArtifactWrapper.h"
#include "ResourcesManager.h"
Go to the source code of this file.
Functions | |
static void | addArchetypes (const artifact *artifact, const char *name, bool check, QTreeWidget *root) |
|
static |
Add all possible archetypes for the specified artifact.
artifact | artifact. Only the type is used. |
name | archetype or object name to allow. If NULL, all items of the correct type are added. |
check | if true then the archetype or object's name must match, else it must not match. |
root | tree to insert items into. |
Definition at line 106 of file ArtifactPanel.cpp.
References archininventory::arch, CREUtils::archetypeNode(), AssetsManager::archetypes(), bigchest::check, AssetsCollection< T, Key >::each(), getManager(), if(), artifact::item, give::name, root, and object::type.
Referenced by ArtifactPanel::updateItem().