12 #include "../../bscript/berror.h" 13 #include "../../bscript/impstr.h" 14 #include "../../clib/clib.h" 15 #include "../globals/uvars.h" 16 #include "../item/item.h" 17 #include "../realms.h" 18 #include "../storage.h" 19 #include "../uoexhelp.h" 20 #include "../uoscrobj.h" 27 using namespace Module;
44 using namespace Bscript;
67 return new BLong( 0 );
79 return new BLong( 0 );
89 return new BError(
"Invalid parameter type" );
93 if ( item !=
nullptr )
96 return new BError(
"Root item not found." );
105 if ( !area || !name )
106 return new BError(
"Invalid parameter type" );
109 return new BLong( result ? 1 : 0 );
121 return new BError(
"Invalid parameter type" );
124 if ( item ==
nullptr )
125 return new BError(
"Unable to create item" );
129 if ( item->
realm ==
nullptr )
static Item * create(u32 objtype, u32 serial=0)
const std::string & value() const
std::vector< FunctionDef > FunctionTable
bool delete_root_item(const std::string &name)
Bscript::BObjectImp * mf_StorageAreas()
StorageArea * create_area(const std::string &name)
Bscript::BObjectImp * mf_FindRootItemInStorageArea()
Bscript::BObjectImp * CreateStorageAreasImp()
BObjectImp * getParamImp(unsigned param)
void * getApplicPtrParam(unsigned param, const BApplicObjType *pointer_type)
#define EXPLICIT_CAST(totype, fromtype)
Bscript::BObjectImp * mf_CreateStorageArea()
Bscript::BObjectImp * mf_CreateRootItemInStorageArea()
Bscript::BObjectImp * mf_FindStorageArea()
Bscript::BObjectImp * mf_DestroyRootItemInStorageArea()
StorageArea * find_area(const std::string &name)
BApplicObjType storage_area_type
void setname(const std::string &)
const String * getStringParam(unsigned param)
StorageExecutorModule(Bscript::Executor &exec)
bool getObjtypeParam(Executor &exec, unsigned param, unsigned int &objtype)
void * getApplicPtrParam(unsigned param, const BApplicObjType *pointer_type)
void insert_root_item(Items::Item *item)
Realms::Realm * find_realm(const std::string &name)
Items::Item * find_root_item(const std::string &name)