aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v5.h
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2015-11-20 23:46:33 +0100
committerBlockMen <nmuelll@web.de>2015-12-15 23:32:19 +0100
commit9eee3c3f465c071bb9908749cf48be3c131a1bdf (patch)
tree916b11e605c29b789db01d0c775dc0bc7c4c8983 /src/mapgen_v5.h
parent19f73e4efc14622b4d020c9d373176cd7801e37f (diff)
Add option to give every object a nametag
or change the nametag text of players
Diffstat (limited to 'src/mapgen_v5.h')
0 files changed, 0 insertions, 0 deletions
py of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include "cpp_api/s_base.h" struct MoveAction; struct ItemStack; class ScriptApiDetached : virtual public ScriptApiBase { public: /* Detached inventory callbacks */ // Return number of accepted items to be moved int detached_inventory_AllowMove( const MoveAction &ma, int count, ServerActiveObject *player); // Return number of accepted items to be put int detached_inventory_AllowPut( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player); // Return number of accepted items to be taken int detached_inventory_AllowTake( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player); // Report moved items void detached_inventory_OnMove( const MoveAction &ma, int count, ServerActiveObject *player); // Report put items void detached_inventory_OnPut( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player); // Report taken items void detached_inventory_OnTake( const MoveAction &ma, const ItemStack &stack, ServerActiveObject *player); private: bool getDetachedInventoryCallback( const std::string &name, const char *callbackname); };