22#include "../../autowrapper/aswrappedcall.h"
30#include <angelscript.h>
32using namespace AngelScript;
38 CacheEntry::RegisterRefCountingObjectGeneric(engine,
"CacheEntryClass");
62 result = engine->RegisterObjectMethod(
"CacheSystemClass",
"CacheEntryClassPtr @findEntryByFilename(LoaderType, bool, const string &in)",
WRAP_MFN(
CacheSystem, FindEntryByFilename), asCALL_GENERIC);
ROR_ASSERT(result>=0);
63 result = engine->RegisterObjectMethod(
"CacheSystemClass",
"CacheEntryClassPtr @getEntryByNumber(int)",
WRAP_MFN(
CacheSystem, GetEntryByNumber), asCALL_GENERIC);
ROR_ASSERT(result>=0);
#define ROR_ASSERT(_EXPR)
A database of user-installed content alias 'mods' (vehicles, terrains...)
Helper/wrapper functions shared by native (CacheSystemAngelscript.cpp) and generic (CacheSystemAngels...
#define WRAP_MFN(ClassType, name)
#define WRAP_OBJ_FIRST(name)
static void RegisterRefCountingObjectPtrGeneric(AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *handle_name, const char *obj_name)
Same as RegisterRefCountingObjectPtr() but uses the generic calling convention (for platforms with AS...
A content database MOTIVATION: RoR users usually have A LOT of content installed.
void RegisterCacheSystemGeneric(AngelScript::asIScriptEngine *engine)
static int CacheEntry_get_number(CacheEntry *self)
static const std::string & CacheEntry_get_filecachename(CacheEntry *self)
static const std::string & CacheEntry_get_resource_bundle_type(CacheEntry *self)
static bool CacheEntry_get_deleted(CacheEntry *self)
static const std::string & CacheEntry_get_fpath(CacheEntry *self)
static const std::string & CacheEntry_get_fname(CacheEntry *self)
static const std::string & CacheEntry_get_categoryname(CacheEntry *self)
static CScriptDictionary * CacheSystemQueryWrapper(CacheSystem *self, CScriptDictionary *dict)
static int CacheEntry_get_categoryid(CacheEntry *self)
static const std::string & CacheEntry_get_fext(CacheEntry *self)
static const std::string & CacheEntry_get_dname(CacheEntry *self)
static const std::string & CacheEntry_get_resource_bundle_path(CacheEntry *self)
static const std::string & CacheEntry_get_resource_group(CacheEntry *self)