Cyrus Mod Loader
Loading...
Searching...
No Matches
Ingredient Class Reference

#include <Ingredient.h>

Inheritance diagram for Ingredient:
PropertyClass

Public Member Functions

gid getItemID ()
 
void setItemID (gid val)
 
std::string getAdjective ()
 
void setAdjective (std::string val)
 
int getQuantity ()
 
void setQuantity (int val)
 
std::string getSpellTemplate ()
 
void setSpellTemplate (std::string val)
 
Ingredient__INGREDIENT_TYPE getIngredientType ()
 
void setIngredientType (Ingredient__INGREDIENT_TYPE val)
 
- Public Member Functions inherited from PropertyClass
virtual char * getClassName ()=0
 Gets the class name of the derived class in the format class T[*].
 
virtual void * getPropertyList ()=0
 Constructs and caches the PropertyList for the derived class, adding all reflected members and member functions.
 
virtual bool copy (uint32_t a1)=0
 Copies the property class data.
 
virtual void * serialize (void *a2, uint32_t a3)=0
 Serializes the derived class's PropertyList as XML.
 
virtual bool onCreated ()=0
 Called when the PropertyClass is created.
 
template<typename T >
CYRUS T * as ()
 Casts this to a pointer of type T.
 
virtual void onPostLoad ()=0
 Called when the PropertyClass is loaded, i.e., initialize is called and onCreated has finished.
 
virtual void onFinalizeLoad ()=0
 
virtual bool shouldNotSerialize ()=0
 Determines if the PropertyClass should not be serialized.
 

Member Function Documentation

◆ getAdjective()

std::string Ingredient::getAdjective ( )
inline

◆ getIngredientType()

Ingredient__INGREDIENT_TYPE Ingredient::getIngredientType ( )
inline

◆ getItemID()

gid Ingredient::getItemID ( )
inline

◆ getQuantity()

int Ingredient::getQuantity ( )
inline

◆ getSpellTemplate()

std::string Ingredient::getSpellTemplate ( )
inline

◆ setAdjective()

void Ingredient::setAdjective ( std::string val)
inline

◆ setIngredientType()

void Ingredient::setIngredientType ( Ingredient__INGREDIENT_TYPE val)
inline

◆ setItemID()

void Ingredient::setItemID ( gid val)
inline

◆ setQuantity()

void Ingredient::setQuantity ( int val)
inline

◆ setSpellTemplate()

void Ingredient::setSpellTemplate ( std::string val)
inline