Go to the documentation of this file.
14 #include "../ResourcesManager.h"
15 #include "../CREPixmap.h"
98 QDataStream df(&ba, QIODevice::WriteOnly);
118 for (
auto arch : archs) {
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra) override
virtual int childrenCount() const override
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
void markModified(ChangeType change, int extra=0)
virtual void drag(QMimeData *data) const override
virtual void drop(const QMimeData *data, int row) override
other than new code I created new archetypes
TreasureListWrapper(AssetWrapper *parent, treasurelist *list, ResourcesManager *resources)
virtual AssetWrapper * child(int child) override
treasurelist * myWrappedItem
static const char * TreasureList
AssetsManager * getManager()
virtual int childIndex(AssetWrapper *child) override
virtual void removeChild(AssetWrapper *child) override
ResourcesManager * myResources
virtual bool canDrop(const QMimeData *data, int row) const override
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
sstring add_string(const char *str)
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra)
void setSingleItem(bool isSingle)
void treasure_remove_item(treasurelist *list, int position)
void remove(treasure *tr)
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
void treasureModified(treasurelist *treasure)
treasure * treasure_insert(treasurelist *list, int position)
Crossfire Protocol most of the time after the actual code was already omit certain important and possibly make life miserable any new developer or curious player should be able to find most of the relevant information here If inconsistencies are found or this documentation proves to be consider the latest server side protocol code in the public source code repository as the authoritative reference Introduction If you were ever curious enough to telnet or netcat to a Crossfire chances are you were sorely disappointed While the protocol may seem to use plain text at it actually uses a mix of ASCII and binary data This handbook attempts to document various aspects of the Crossfire protocol As consult the README file to find out how to get in touch with helpful people via mailing lists
virtual PossibleUse uses(const AssetWrapper *, std::string &) const override
static const char * Archetype