mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat: add Group:GetGroupType() (#82)
This commit is contained in:
37
README.md
37
README.md
@@ -76,19 +76,30 @@ Eluna API for AC:
|
||||
|
||||
## Additions from Eluna/master
|
||||
|
||||
- Added HttpRequest method. https://github.com/azerothcore/Eluna/pull/2
|
||||
- Added RegisterPlayerEvent 43: `PLAYER_EVENT_ON_PET_ADDED_TO_WORLD` fires for pets and summoned creatures. https://github.com/azerothcore/Eluna/pull/3
|
||||
- Added Chat-Handler methods to player events. https://github.com/azerothcore/Eluna/pull/23
|
||||
- Exposed `ModifyThreatPct()`. https://github.com/azerothcore/Eluna/pull/25
|
||||
- Exposed `Object:IsPlayer()`. https://github.com/azerothcore/Eluna/pull/42
|
||||
- Added RegisterPlayerEvent 44: `PLAYER_EVENT_ON_LEARN_SPELL`. https://github.com/azerothcore/mod-eluna/pull/46
|
||||
- Added RegisterPlayerEvent 45: `PLAYER_ON_ACHIEVEMENT_COMPLETE`. https://github.com/azerothcore/mod-eluna/pull/47
|
||||
- Added vendor entry as argument to player:SendListInventory(object, vendorentry). https://github.com/azerothcore/mod-eluna/pull/48
|
||||
- Added `gameobject:AddLoot()` to add loot at runtime to an **empty** container. https://github.com/azerothcore/mod-eluna/pull/52
|
||||
- Added RegisterPlayerEvent 46: `PLAYER_EVENT_ON_FFAPVP_CHANGE`. https://github.com/azerothcore/mod-eluna/pull/63
|
||||
- Added RegisterPlayerEvent 47: `PLAYER_EVENT_ON_UPDATE_AREA`. https://github.com/azerothcore/mod-eluna/pull/65
|
||||
- Added logging with `ELUNA_LOG_INFO` for `RunCommand()`: https://github.com/azerothcore/mod-eluna/pull/75
|
||||
### Player
|
||||
- Added `RegisterPlayerEvent` `43` (`PLAYER_EVENT_ON_PET_ADDED_TO_WORLD`) fires for pets and summoned creatures: https://github.com/azerothcore/mod-eluna/pull/3
|
||||
- Added `RegisterPlayerEvent` `44` (`PLAYER_EVENT_ON_LEARN_SPELL`): https://github.com/azerothcore/mod-eluna/pull/46
|
||||
- Added `RegisterPlayerEvent` `45` (`PLAYER_ON_ACHIEVEMENT_COMPLETE`): https://github.com/azerothcore/mod-eluna/pull/47
|
||||
- Added `RegisterPlayerEvent` `46` (`PLAYER_EVENT_ON_FFAPVP_CHANGE`): https://github.com/azerothcore/mod-eluna/pull/63
|
||||
- Added `RegisterPlayerEvent` `47` (`PLAYER_EVENT_ON_UPDATE_AREA`): https://github.com/azerothcore/mod-eluna/pull/65
|
||||
- Added `Player:GetMailCount()`: https://github.com/azerothcore/mod-eluna/pull/76
|
||||
- Added `Player:GetXP()`: https://github.com/azerothcore/mod-eluna/pull/77
|
||||
- Added `Player:GetAchievementCriteriaProgress()`: https://github.com/azerothcore/mod-eluna/pull/78
|
||||
|
||||
- Added vendor entry as argument to `Player:SendListInventory(object, vendorentry)`: https://github.com/azerothcore/mod-eluna/pull/48
|
||||
|
||||
### Group
|
||||
- Added `Group:GetGroupType()`: https://github.com/azerothcore/mod-eluna/pull/82
|
||||
|
||||
### Unit
|
||||
- Added `Unit:ModifyThreatPct()`: https://github.com/azerothcore/mod-eluna/pull/25
|
||||
|
||||
### GameObject
|
||||
- Added `GameObject:AddLoot()` to add loot at runtime to an **empty** container: https://github.com/azerothcore/mod-eluna/pull/52
|
||||
|
||||
### Object
|
||||
- Added `Object:IsPlayer()`: https://github.com/azerothcore/mod-eluna/pull/42
|
||||
|
||||
### Misc
|
||||
- Added `HttpRequest()`: https://github.com/azerothcore/mod-eluna/pull/2
|
||||
- Added `ChatHandler` methods: https://github.com/azerothcore/mod-eluna/pull/23
|
||||
- Added logging with `ELUNA_LOG_INFO` for `RunCommand()`: https://github.com/azerothcore/mod-eluna/pull/75
|
||||
|
||||
@@ -261,6 +261,28 @@ namespace LuaGroup
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the type of this [Group]
|
||||
*
|
||||
* <pre>
|
||||
* enum GroupType
|
||||
* {
|
||||
* GROUPTYPE_NORMAL = 0,
|
||||
* GROUPTYPE_BG = 1,
|
||||
* GROUPTYPE_RAID = 2,
|
||||
* GROUPTYPE_LFG_RESTRICTED = 4,
|
||||
* GROUPTYPE_LFG = 8
|
||||
* };
|
||||
* </pre>
|
||||
*
|
||||
* @return [GroupType] groupType
|
||||
*/
|
||||
int GetGroupType(lua_State* L, Group* group)
|
||||
{
|
||||
Eluna::Push(L, group->GetGroupType());
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the [Player]'s subgroup ID of this [Group]
|
||||
*
|
||||
|
||||
@@ -1080,6 +1080,7 @@ ElunaRegister<Group> GroupMethods[] =
|
||||
{ "GetMemberGroup", &LuaGroup::GetMemberGroup },
|
||||
{ "GetMemberGUID", &LuaGroup::GetMemberGUID },
|
||||
{ "GetMembersCount", &LuaGroup::GetMembersCount },
|
||||
{ "GetGroupType", &LuaGroup::GetGroupType },
|
||||
|
||||
// Setters
|
||||
{ "SetLeader", &LuaGroup::SetLeader },
|
||||
|
||||
Reference in New Issue
Block a user