DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ModuleRecipes Class Reference

#include <ModuleRecipes.h>

Inheritance diagram for ModuleRecipes:
ModuleBase

Private Member Functions

void  ModuleRecipes ()
 
void  ~ModuleRecipes ()
 
int  GetValidRecipeID (Link< EntityAI > item1, Link< EntityAI > item2)
 
void  PerformRecipe (int id, Link< EntityAI > item1, Link< EntityAI > item2, Man player)
 
void  RegisterRecipe (RecipeBase recipe)
 
void  TransmitRecipe (int id, Link< EntityAI > item1, Link< EntityAI > item2)
 
bool  CheckRecipe (int id, Link< EntityAI > item1, Link< EntityAI > item2)
 
void  OnRPC (ParamsReadContext ctx, Man player)
 
void  ReceivedRecipe (int id, EntityAI item1, EntityAI item2, Man player)
 

Private Attributes

autoptr map< int, RecipeBase m_RecipeList
 
array< string >  m_Items
 
int  m_NumberOfRecipes = 0
 

Constructor & Destructor Documentation

void ModuleRecipes::ModuleRecipes ( )
private

References m_RecipeList, and RegisterRecipe().

void ModuleRecipes::~ModuleRecipes ( )
private

References m_RecipeList.

Member Function Documentation

int ModuleRecipes::GetValidRecipeID ( Link< EntityAI item1,
Link< EntityAI item2 
)
private
void ModuleRecipes::PerformRecipe ( int  id,
Link< EntityAI item1,
Link< EntityAI item2,
Man  player 
)
private

References m_RecipeList.

Referenced by PlayerBase::PerformRecipe().

void ModuleRecipes::RegisterRecipe ( RecipeBase  recipe )
private
void ModuleRecipes::TransmitRecipe ( int  id,
Link< EntityAI item1,
Link< EntityAI item2 
)
private
bool ModuleRecipes::CheckRecipe ( int  id,
Link< EntityAI item1,
Link< EntityAI item2 
)
private
void ModuleRecipes::OnRPC ( ParamsReadContext  ctx,
Man  player 
)
private
void ModuleRecipes::ReceivedRecipe ( int  id,
EntityAI  item1,
EntityAI  item2,
Man  player 
)
private

Member Data Documentation

autoptr map<int, RecipeBase> ModuleRecipes::m_RecipeList
private
array<string> ModuleRecipes::m_Items
private
int ModuleRecipes::m_NumberOfRecipes = 0
private

Referenced by RegisterRecipe().


The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)