aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/textures/default_steel_block.png
blob: 8e2020081b0ac3a2a4184ec1dfee15f0726b2f4e (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 06 00 00 00 1f f3 ff .PNG........IHDR................
0020 61 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 00 09 70 48 59 73 00 00 0e c4 00 00 0e a....sBIT....|.d.....pHYs.......
0040 c4 01 95 2b 0e 1b 00 00 00 7d 49 44 41 54 38 8d a5 52 c1 11 c0 20 08 a3 9e 23 64 ff a9 1c c3 1d ...+.....}IDAT8..R.......#d.....
0060 ec cb 1e d2 60 ec 35 2f 39 93 10 94 ab b5 36 ec 07 aa 99 59 ef fd 88 0c 60 e1 02 b0 c2 48 00 a4 ....`.5/9.....6....Y....`....H..
0080 78 e2 65 c0 12 65 62 6a 70 3a ce 36 c1 69 77 69 a0 c4 d2 80 89 e3 03 cb 11 76 e2 d4 c0 13 a3 28 x.e..ebjp:.6.iwi.........v.....(
00a0 a6 a2 7b f0 e5 27 16 03 2f 9e 0b e5 6b 7f 9e a8 59 e7 b8 b2 4c fc 24 50 b1 e3 9d af 0b 23 64 60 ..{..'../...k...Y...L.$P.....#d`
00c0 8d 2a 8b a5 4c 3c 6e 27 8f 46 55 10 f9 3b 99 00 00 00 00 49 45 4e 44 ae 42 60 82 .*..L<n'.FU..;.....IEND.B`.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy 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.
*/

#ifndef L_ITEM_H_
#define L_ITEM_H_

#include "lua_api/l_base.h"
#include "inventory.h"  // ItemStack

class LuaItemStack : public ModApiBase {
private:
	ItemStack m_stack;

	static const char className[];
	static const luaL_reg methods[];

	// Exported functions

	// garbage collector
	static int gc_object(lua_State *L);

	// is_empty(self) -> true/false
	static int l_is_empty(lua_State *L);

	// get_name(self) -> string
	static int l_get_name(lua_State *L);

	// set_name(self, name)
	static int l_set_name(lua_State *L);

	// get_count(self) -> number
	static int l_get_count(lua_State *L);

	// set_count(self, number)
	static int l_set_count(lua_State *L);

	// get_wear(self) -> number
	static int l_get_wear(lua_State *L);

	// set_wear(self, number)
	static int l_set_wear(lua_State *L);

	// get_metadata(self) -> string
	static int l_get_metadata(lua_State *L);

	// set_metadata(self, string)
	static int l_set_metadata(lua_State *L);

	// clear(self) -> true
	static int l_clear(lua_State *L);

	// replace(self, itemstack or itemstring or table or nil) -> true
	static int l_replace(lua_State *L);

	// to_string(self) -> string
	static int l_to_string(lua_State *L);

	// to_table(self) -> table or nil
	static int l_to_table(lua_State *L);