Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
l_craft.cpp File Reference
#include "lua_api/l_craft.h"
#include "lua_api/l_internal.h"
#include "lua_api/l_item.h"
#include "common/c_converter.h"
#include "common/c_content.h"
#include "server.h"
#include "craftdef.h"
+ Include dependency graph for l_craft.cpp:

Functions

static void push_craft_recipe (lua_State *L, IGameDef *gdef, const CraftDefinition *recipe, const CraftOutput &tmpout)
 
static void push_craft_recipes (lua_State *L, IGameDef *gdef, const std::vector< CraftDefinition * > &recipes, const CraftOutput &output)
 

Function Documentation

◆ push_craft_recipe()

static void push_craft_recipe ( lua_State * L,
IGameDef * gdef,
const CraftDefinition * recipe,
const CraftOutput & tmpout )
static

References CRAFT_METHOD_COOKING, CRAFT_METHOD_FUEL, CRAFT_METHOD_NORMAL, CraftDefinition::getInput(), CraftDefinition::getOutput(), CraftOutput::item, CraftInput::items, CraftInput::method, setintfield(), and CraftInput::width.

Referenced by ModApiCraft::l_get_craft_recipe(), and push_craft_recipes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ push_craft_recipes()

static void push_craft_recipes ( lua_State * L,
IGameDef * gdef,
const std::vector< CraftDefinition * > & recipes,
const CraftOutput & output )
static

References push_craft_recipe().

Referenced by ModApiCraft::l_get_all_craft_recipes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: