Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ElunaCompatibility.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef ELUNA_COMPATIBILITY_H
7#define ELUNA_COMPATIBILITY_H
8
9#include <optional>
10
11template<typename T>
12using Optional = std::optional<T>;
13
15
24
33
37
42
44{
45 return ObjectAccessor::GetWorldObject(context, guid);
46}
47
48#endif
DifficultyID
Definition DBCEnums.h:330
std::uint64_t uint64
Definition Define.h:76
static constexpr LootState GO_READY
static constexpr TempSummonType TEMPSUMMON_DEAD_DESPAWN
static constexpr TempSummonType TEMPSUMMON_MANUAL_DESPAWN
static constexpr GOState GO_STATE_ACTIVE_ALTERNATIVE
static constexpr TempSummonType TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN
static constexpr LootState GO_NOT_READY
static constexpr TempSummonType TEMPSUMMON_TIMED_DESPAWN
static constexpr TypeID TYPEID_PLAYER
static constexpr TypeID TYPEID_OBJECT
WorldObject * ElunaGetWorldObject(WorldObject const &context, uint64 guid)
static constexpr TypeID TYPEID_CORPSE
static constexpr LootState GO_JUST_DEACTIVATED
static constexpr TempSummonType TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
static constexpr TempSummonType TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
static constexpr TypeID TYPEID_ITEM
static constexpr GOState GO_STATE_ACTIVE
static constexpr TypeID TYPEID_UNIT
static constexpr GOState GO_STATE_READY
std::optional< T > Optional
DifficultyID Difficulty
static constexpr TypeID TYPEID_CONTAINER
static constexpr TempSummonType TEMPSUMMON_CORPSE_TIMED_DESPAWN
static constexpr TypeID TYPEID_DYNAMICOBJECT
static constexpr TypeID TYPEID_GAMEOBJECT
static constexpr LootState GO_ACTIVATED
static constexpr TempSummonType TEMPSUMMON_CORPSE_DESPAWN
LootState
Definition GameObject.h:615
@ GO_JUST_DEACTIVATED
Definition GameObject.h:619
GOState
Definition GameObject.h:575
@ GO_STATE_ACTIVE
Definition GameObject.h:576
@ GO_STATE_READY
Definition GameObject.h:577
@ GO_STATE_ACTIVE_ALTERNATIVE
Definition GameObject.h:578
TypeID
Definition Object.h:50
@ TYPEID_PLAYER
Definition Object.h:55
@ TYPEID_GAMEOBJECT
Definition Object.h:56
@ TYPEID_DYNAMICOBJECT
Definition Object.h:57
@ TYPEID_UNIT
Definition Object.h:54
@ TYPEID_ITEM
Definition Object.h:52
@ TYPEID_OBJECT
Definition Object.h:51
@ TYPEID_CORPSE
Definition Object.h:58
@ TYPEID_CONTAINER
Definition Object.h:53
TempSummonType
Definition Object.h:67
@ TEMPSUMMON_MANUAL_DESPAWN
Definition Object.h:75
@ TEMPSUMMON_CORPSE_DESPAWN
Definition Object.h:72
@ TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN
Definition Object.h:69
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
Definition Object.h:71
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:70
@ TEMPSUMMON_DEAD_DESPAWN
Definition Object.h:74
@ TEMPSUMMON_TIMED_OR_DEAD_DESPAWN
Definition Object.h:68
@ TEMPSUMMON_CORPSE_TIMED_DESPAWN
Definition Object.h:73
static WorldObject * GetWorldObject(WorldObject const &, uint64)