QtCraft API C++ classes QML types Handbook

QcExperienceDrop Struct

Experience points something gives as orbs (decision E-398): a mined ore, a killed creature, a pair of bred animals; between min and max points, chosen evenly. More...

Header: #include <common/content/items/QcExperienceDrop.h>

Public Functions

bool isEmpty() const

Public Variables

int max
int min

Detailed Description

Server side only.

Member Function Documentation

bool QcExperienceDrop::isEmpty() const

Returns whether it gives no points (max is 0 or less).

Member Variable Documentation

int QcExperienceDrop::max

Most points it gives; 0 or less gives none.

int QcExperienceDrop::min

Fewest points it gives.