mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-03 14:22:17 +00:00
Fix for luabind not compiling (jumbers), bunch of api upgrades for lua, changed where spells and items load quests from, removed some old code. etc etc.
This commit is contained in:
1 parent
7af04798fb
commit
2529a7700e
42 files changed
+426
-859
No files matched your search
+3
-2
@@ -13,7 +13,7 @@ namespace luabind {
|
||||
|
||||
luabind::scope lua_register_iteminst();
|
||||
|
||||
class Lua_ItemInst : public Lua_Ptr<void>
|
||||
class Lua_ItemInst : public Lua_Ptr<ItemInst>
|
||||
{
|
||||
typedef ItemInst NativeType;
|
||||
public:
|
||||
@@ -22,7 +22,7 @@ public:
|
||||
Lua_ItemInst() : Lua_Ptr(nullptr), cloned_(false) { }
|
||||
Lua_ItemInst(ItemInst *d) : Lua_Ptr(d), cloned_(false) { }
|
||||
Lua_ItemInst(ItemInst *d, bool cloned) : Lua_Ptr(d), cloned_(cloned) { }
|
||||
virtual ~Lua_ItemInst() { if(cloned_) { void *ptr = GetLuaPtrData(); if(ptr) { delete ptr; } } }
|
||||
virtual ~Lua_ItemInst() { if(cloned_) { ItemInst *ptr = GetLuaPtrData(); if(ptr) { delete ptr; } } }
|
||||
|
||||
operator ItemInst*() {
|
||||
return reinterpret_cast<ItemInst*>(GetLuaPtrData());
|
||||
@@ -63,6 +63,7 @@ public:
|
||||
void SetCustomData(std::string identifier, bool value);
|
||||
std::string GetCustomData(std::string identifier);
|
||||
void DeleteCustomData(std::string identifier);
|
||||
void SetScaling(bool v);
|
||||
void SetScale(double scale_factor);
|
||||
uint32 GetExp();
|
||||
void SetExp(uint32 exp);
|
||||
|
||||
Reference in new issue
Block a user