mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename "mod metadata" to "mod storage" everywhere
This commit is contained in:
parent
8817af07fb
commit
7c21347a40
22 changed files with 480 additions and 474 deletions
|
@ -41,7 +41,7 @@ void ModApiStorage::Initialize(lua_State *L, int top)
|
|||
API_FCT(get_mod_storage);
|
||||
}
|
||||
|
||||
void StorageRef::create(lua_State *L, const std::string &mod_name, ModMetadataDatabase *db)
|
||||
void StorageRef::create(lua_State *L, const std::string &mod_name, ModStorageDatabase *db)
|
||||
{
|
||||
StorageRef *o = new StorageRef(mod_name, db);
|
||||
*(void **)(lua_newuserdata(L, sizeof(void *))) = o;
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
class StorageRef : public MetaDataRef
|
||||
{
|
||||
private:
|
||||
ModMetadata m_object;
|
||||
ModStorage m_object;
|
||||
|
||||
static const luaL_Reg methods[];
|
||||
|
||||
|
@ -44,11 +44,11 @@ private:
|
|||
virtual void clearMeta();
|
||||
|
||||
public:
|
||||
StorageRef(const std::string &mod_name, ModMetadataDatabase *db): m_object(mod_name, db) {}
|
||||
StorageRef(const std::string &mod_name, ModStorageDatabase *db): m_object(mod_name, db) {}
|
||||
~StorageRef() = default;
|
||||
|
||||
static void Register(lua_State *L);
|
||||
static void create(lua_State *L, const std::string &mod_name, ModMetadataDatabase *db);
|
||||
static void create(lua_State *L, const std::string &mod_name, ModStorageDatabase *db);
|
||||
|
||||
static const char className[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue