mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
Some quest item and spell work, took out that stupid multiquesting code -> use your brains that's completely doable entirely in quests even perl
This commit is contained in:
+8
-8
@@ -1,23 +1,23 @@
|
||||
#ifndef EQEMU_LUA_ITEM_H
|
||||
#define EQEMU_LUA_ITEM_H
|
||||
#ifndef EQEMU_LUA_SPELL_H
|
||||
#define EQEMU_LUA_SPELL_H
|
||||
#ifdef LUA_EQEMU
|
||||
|
||||
#include "lua_ptr.h"
|
||||
|
||||
struct SPDat_Spell_Struct;
|
||||
|
||||
class Lua_Spell : public Lua_Ptr
|
||||
class Lua_Spell : public Lua_Ptr<const void>
|
||||
{
|
||||
typedef SPDat_Spell_Struct NativeType;
|
||||
typedef const SPDat_Spell_Struct NativeType;
|
||||
public:
|
||||
Lua_Spell() { }
|
||||
Lua_Spell(SPDat_Spell_Struct *d) : Lua_Ptr(d) { }
|
||||
Lua_Spell(const SPDat_Spell_Struct *d) : Lua_Ptr(d) { }
|
||||
virtual ~Lua_Spell() { }
|
||||
|
||||
operator SPDat_Spell_Struct*() {
|
||||
void *d = GetLuaPtrData();
|
||||
operator const SPDat_Spell_Struct*() {
|
||||
const void *d = GetLuaPtrData();
|
||||
if(d) {
|
||||
return reinterpret_cast<SPDat_Spell_Struct*>(d);
|
||||
return reinterpret_cast<const SPDat_Spell_Struct*>(d);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user