34namespace Json {
class Value; }
58namespace treegen {
struct TreeDef; }
73 const std::vector<video::SColor> *palette);
76 u8 drawtype,
bool special);
141 const char *fieldname,
146 const char *fieldname,
148 u32 *flags, u32 *flagmask);
152 u32 *flags, u32 *flagmask);
155 u32 flags, u32 flagmask);
161 const std::vector<ItemStack> &items);
163std::vector<ItemStack>
read_items (lua_State *L,
172 const std::string &str);
185 const Json::Value &value,
188 int index, u16 max_depth);
196 false,
bool hitpoint =
false);
void push_object_properties(lua_State *L, const ObjectProperties *prop)
Definition c_content.cpp:457
void push_simplesoundspec(lua_State *L, const SoundSpec &spec)
Definition c_content.cpp:1214
bool read_noiseparams(lua_State *L, int index, NoiseParams *np)
Definition c_content.cpp:1958
NodeBox read_nodebox(lua_State *L, int index)
Definition c_content.cpp:1228
void push_item_definition_full(lua_State *L, const ItemDefinition &i)
Definition c_content.cpp:176
void push_content_features(lua_State *L, const ContentFeatures &c)
Definition c_content.cpp:956
int getenumfield(lua_State *L, int table, const char *fieldname, const EnumString *spec, int default_)
Definition c_content.cpp:1319
struct TileAnimationParams read_animation_definition(lua_State *L, int index)
Definition c_content.cpp:1521
struct EnumString es_TileAnimationType[]
Definition c_content.cpp:27
void push_objectRef(lua_State *L, const u16 id)
Definition c_content.cpp:2225
void read_content_features(lua_State *L, ContentFeatures &f, int index)
Definition c_content.cpp:630
void push_items(lua_State *L, const std::vector< ItemStack > &items)
Definition c_content.cpp:1912
bool read_flags(lua_State *L, int index, FlagDesc *flagdesc, u32 *flags, u32 *flagmask)
Definition c_content.cpp:1827
void push_inventory_lists(lua_State *L, const Inventory &inv)
Definition c_content.cpp:1477
ToolCapabilities read_tool_capabilities(lua_State *L, int table)
Definition c_content.cpp:1556
void push_noiseparams(lua_State *L, NoiseParams *np)
Definition c_content.cpp:1986
void read_inventory_list(lua_State *L, int tableindex, Inventory *inv, const char *name, IGameDef *gdef, int forcesize=-1)
Definition c_content.cpp:1490
const std::array< const char *, 33 > object_property_keys
Definition c_content.cpp:246
TileDef read_tiledef(lua_State *L, int index, u8 drawtype, bool special)
Definition c_content.cpp:557
bool read_tree_def(lua_State *L, int idx, const NodeDefManager *ndef, treegen::TreeDef &tree_def)
Definition c_content.cpp:2005
void push_pointabilities(lua_State *L, const Pointabilities &pointabilities)
Definition c_content.cpp:1714
void push_palette(lua_State *L, const std::vector< video::SColor > *palette)
Definition c_content.cpp:1142
Pointabilities read_pointabilities(lua_State *L, int index)
Definition c_content.cpp:1647
void push_pointability_type(lua_State *L, PointabilityType pointable)
Definition c_content.cpp:1697
void read_groups(lua_State *L, int index, ItemGroupList &result)
Definition c_content.cpp:1878
void read_hud_element(lua_State *L, HudElement *elem)
Definition c_content.cpp:2239
void luaentity_get(lua_State *L, u16 id)
Definition c_content.cpp:1945
std::vector< ItemStack > read_items(lua_State *L, int index, IGameDef *gdef)
Definition c_content.cpp:1922
void push_flags_string(lua_State *L, FlagDesc *flagdesc, u32 flags, u32 flagmask)
Definition c_content.cpp:1867
void read_object_properties(lua_State *L, int index, ServerActiveObject *sao, ObjectProperties *prop, IItemDefManager *idef)
Definition c_content.cpp:283
void push_hit_params(lua_State *L, const HitParams ¶ms)
Definition c_content.cpp:1806
void push_hud_element(lua_State *L, HudElement *elem)
Definition c_content.cpp:2320
PointabilityType read_pointability_type(lua_State *L, int index)
Definition c_content.cpp:1630
void push_nodebox(lua_State *L, const NodeBox &box)
Definition c_content.cpp:1090
void pushnode(lua_State *L, const MapNode &n)
Definition c_content.cpp:1293
void push_dig_params(lua_State *L, const DigParams ¶ms)
Definition c_content.cpp:1797
void read_server_sound_params(lua_State *L, int index, ServerPlayingSound ¶ms)
Definition c_content.cpp:1156
void read_simplesoundspec(lua_State *L, int index, SoundSpec &spec)
Definition c_content.cpp:1197
void push_tool_capabilities(lua_State *L, const ToolCapabilities &prop)
Definition c_content.cpp:1411
void push_wear_bar_params(lua_State *L, const WearBarParams &prop)
Definition c_content.cpp:1455
void push_item_definition(lua_State *L, const ItemDefinition &i)
Definition c_content.cpp:167
ItemStack read_item(lua_State *L, int index, IItemDefManager *idef)
Definition c_content.cpp:1344
u32 read_flags_table(lua_State *L, int table, FlagDesc *flagdesc, u32 *flagmask)
Definition c_content.cpp:1842
WearBarParams read_wear_bar_params(lua_State *L, int table)
Definition c_content.cpp:1749
bool string_to_enum(const EnumString *spec, int &result, const std::string &str)
Definition c_content.cpp:1329
bool push_json_value(lua_State *L, const Json::Value &value, int nullindex)
Definition c_content.cpp:2121
void read_item_definition(lua_State *L, int index, const ItemDefinition &default_def, ItemDefinition &def)
Definition c_content.cpp:36
bool read_hud_change(lua_State *L, HudElementStat &stat, HudElement *elem, void **value)
Definition c_content.cpp:2382
void push_inventory_list(lua_State *L, const InventoryList &invlist)
Definition c_content.cpp:1471
void push_groups(lua_State *L, const ItemGroupList &groups)
Definition c_content.cpp:1902
void push_collision_move_result(lua_State *L, const collisionMoveResult &res)
Definition c_content.cpp:2477
void push_pointed_thing(lua_State *L, const PointedThing &pointed, bool csm=false, bool hitpoint=false)
Definition c_content.cpp:2189
void read_json_value(lua_State *L, Json::Value &root, int index, u16 max_depth)
Definition c_content.cpp:2137
bool getflagsfield(lua_State *L, int table, const char *fieldname, FlagDesc *flagdesc, u32 *flags, u32 *flagmask)
Definition c_content.cpp:1815
void push_mod_spec(lua_State *L, const ModSpec &spec, bool include_unsatisfied)
Definition c_content.cpp:2543
MapNode readnode(lua_State *L, int index)
Definition c_content.cpp:1279
Definition inventory.h:194
Definition inventory.h:314
This class is for getting the actual properties of nodes from their content ID.
Definition nodedef.h:541
Definition mg_schematic.h:79
Definition serveractiveobject.h:41
HudElementStat
Definition hud.h:59
std::unordered_map< std::string, int > ItemGroupList
Definition itemgroup.h:10
static const struct table_key table[]
Definition keycode.cpp:33
Definition c_content.h:34
Definition mg_decoration.h:19
#define idx(x, y)
Definition noise.cpp:490
PointabilityType
Definition pointabilities.h:13
Definition inventory.h:19
Definition object_properties.h:15
Definition pointabilities.h:30
An active object or node which is selected by a ray on the map.
Definition pointedthing.h:22
Describes the sound information for playback.
Definition sound.h:20
Definition tileanimation.h:18
Definition collision.h:44