mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
# Perl - Add `$hate_entry->GetFrenzy()`. - Add `$hate_entry->SetDamage(value)`. - Add `$hate_entry->SetEnt(mob)`. - Add `$hate_entry->SetFrenzy(is_frenzy)`. - Add `$hate_entry->SetHate(value)`. # Lua - Convert `hate_entry:GetFrenzy()` to `bool` instead of `int`, as `is_entity_frenzy` is a `bool`.
38 lines
717 B
C++
38 lines
717 B
C++
#ifndef EQEMU_LUA_HATE_LIST_H
|
|
#define EQEMU_LUA_HATE_LIST_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
#include "lua_ptr.h"
|
|
|
|
class Lua_Mob;
|
|
struct struct_HateList;
|
|
|
|
luabind::scope lua_register_hate_entry();
|
|
luabind::scope lua_register_hate_list();
|
|
|
|
class Lua_HateEntry : public Lua_Ptr<struct_HateList>
|
|
{
|
|
typedef struct_HateList NativeType;
|
|
public:
|
|
Lua_HateEntry() : Lua_Ptr(nullptr) { }
|
|
Lua_HateEntry(struct_HateList *d) : Lua_Ptr(d) { }
|
|
virtual ~Lua_HateEntry() { }
|
|
|
|
Lua_Mob GetEnt();
|
|
void SetEnt(Lua_Mob e);
|
|
int64 GetDamage();
|
|
void SetDamage(int64 value);
|
|
int64 GetHate();
|
|
void SetHate(int64 value);
|
|
bool GetFrenzy();
|
|
void SetFrenzy(bool value);
|
|
};
|
|
|
|
struct Lua_HateList
|
|
{
|
|
std::vector<Lua_HateEntry> entries;
|
|
};
|
|
|
|
#endif
|
|
#endif
|