Skip to content

Commit

Permalink
[Eluna] Remove tabs and trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Nov 17, 2023
1 parent 1960d6e commit c4d38e5
Show file tree
Hide file tree
Showing 82 changed files with 487 additions and 487 deletions.
2 changes: 1 addition & 1 deletion src/modules/Eluna/BindingMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class hash_helper
{
return std::hash<typename std::underlying_type<T>::type>()(t);
}

template <typename T, typename std::enable_if<!std::is_enum<T>::value>::type* = nullptr>
static inline result_type hash(T const & t)
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/AuraMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace LuaAura
Eluna::CHECKOBJ<ElunaObject>(L, 1)->Invalidate();
return 0;
}

ElunaRegister<Aura> AuraMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/BattleGroundMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ namespace LuaBattleGround
Eluna::Push(L, bg->GetStatus());
return 1;
}

ElunaRegister<BattleGround> BattleGroundMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/CorpseMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace LuaCorpse
corpse->SaveToDB();
return 0;
}

ElunaRegister<Corpse> CorpseMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/CreatureMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ namespace LuaCreature
Eluna::Push(L, cInfo->Family);
return 1;
}

ElunaRegister<Creature> CreatureMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/ElunaQueryMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ namespace LuaQuery
lua_settop(L, tbl);
return 1;
}

ElunaRegister<ElunaQuery> QueryMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/GameObjectMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ namespace LuaGameObject
go->SetRespawnTime(respawn);
return 0;
}

ElunaRegister<GameObject> GameObjectMethods[] =
{
// Getters
Expand Down
8 changes: 4 additions & 4 deletions src/modules/Eluna/CMangos/GlobalMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ namespace LuaGlobalFunctions
* Low GUID is an ID to distinct the objects of the same type.
*
* [Player] and [Creature] for example can have the same low GUID but not GUID.
*
*
* On TrinityCore all low GUIDs are different for all objects of the same type.
* For example creatures in instances are assigned new GUIDs when the Map is created.
*
*
* On MaNGOS and cMaNGOS low GUIDs are unique only on the same map.
* For example creatures in instances use the same low GUID assigned for that spawn in the database.
* This is why to identify a creature you have to know the instanceId and low GUID. See [Map:GetIntstanceId]
Expand Down Expand Up @@ -2039,7 +2039,7 @@ namespace LuaGlobalFunctions

/**
* Adds a taxi path to a specified map, returns the used pathId.
*
*
* Note that the first taxi point needs to be near the player when he starts the taxi path.
* The function should also be used only **once** per path added so use it on server startup for example.
*
Expand Down Expand Up @@ -2960,7 +2960,7 @@ namespace LuaGlobalFunctions

return 0;
}

luaL_Reg GlobalMethods[] =
{
// Hooks
Expand Down
6 changes: 3 additions & 3 deletions src/modules/Eluna/CMangos/GroupMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace LuaGroup
return 1;
}
#endif

/**
* Returns 'true' if the [Group] is a raid [Group]
*
Expand All @@ -67,7 +67,7 @@ namespace LuaGroup
*/
int IsBGGroup(lua_State* L, Group* group)
{
Eluna::Push(L, group->IsBattleGroup());
Eluna::Push(L, group->IsBattleGroup());
return 1;
}

Expand Down Expand Up @@ -374,7 +374,7 @@ namespace LuaGroup
group->ConvertToLFG();
return 0;
}*/

ElunaRegister<Group> GroupMethods[] =
{
// Getters
Expand Down
6 changes: 3 additions & 3 deletions src/modules/Eluna/CMangos/GuildMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ namespace LuaGuild
{
uint8 tabId = Eluna::CHECKVAL<uint8>(L, 2);
const char* text = Eluna::CHECKVAL<const char*>(L, 3);
guild->SetGuildBankTabText(tabId, text);

guild->SetGuildBankTabText(tabId, text);
return 0;
}
#endif
Expand Down Expand Up @@ -238,7 +238,7 @@ namespace LuaGuild
guild->ChangeMemberRank(player->GET_GUID(), newRank);
return 0;
}

ElunaRegister<Guild> GuildMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/ItemMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ namespace LuaItem
item->SaveToDB();
return 0;
}

ElunaRegister<Item> ItemMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/MapMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ namespace LuaMap
lua_settop(L, tbl);
return 1;
}

ElunaRegister<Map> MapMethods[] =
{
// Getters
Expand Down
14 changes: 7 additions & 7 deletions src/modules/Eluna/CMangos/ObjectMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ namespace LuaObject

/**
* Returns the GUID of the [Object].
*
*
* GUID is an unique identifier for the object.
*
*
* However on MaNGOS and cMangos creatures and gameobjects inside different maps can share
* the same GUID but not on the same map.
*
*
* On TrinityCore this value is unique across all maps
*
*
* @return ObjectGuid guid
*/
int GetGUID(lua_State* L, Object* obj)
Expand All @@ -170,10 +170,10 @@ namespace LuaObject

/**
* Returns the low-part of the [Object]'s GUID.
*
*
* On TrinityCore all low GUIDs are different for all objects of the same type.
* For example creatures in instances are assigned new GUIDs when the Map is created.
*
*
* On MaNGOS and cMaNGOS low GUIDs are unique only on the same map.
* For example creatures in instances use the same low GUID assigned for that spawn in the database.
* This is why to identify a creature you have to know the instanceId and low GUID. See [Map:GetIntstanceId]
Expand Down Expand Up @@ -452,7 +452,7 @@ namespace LuaObject
Eluna::Push(L, obj->ToPlayer());
return 1;
}

ElunaRegister<Object> ObjectMethods[] =
{
// Getters
Expand Down
36 changes: 18 additions & 18 deletions src/modules/Eluna/CMangos/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace LuaPlayer
return 1;
}
#endif

/**
* Returns 'true' if the [Player] has the given amount of item entry specified, 'false' otherwise.
*
Expand All @@ -160,7 +160,7 @@ namespace LuaPlayer
Eluna::Push(L, player->HasItemCount(itemId, count, check_bank));
return 1;
}

/**
* Returns 'true' if the [Player] has a quest for the item entry specified, 'false' otherwise.
*
Expand All @@ -174,7 +174,7 @@ namespace LuaPlayer
Eluna::Push(L, player->HasQuestForItem(entry));
return 1;
}

/**
* Returns 'true' if the [Player] can use the item or item entry specified, 'false' otherwise.
*
Expand Down Expand Up @@ -418,7 +418,7 @@ namespace LuaPlayer
return 1;
}
#endif

/**
* Returns 'true' if the [Player] is immune to everything.
*
Expand Down Expand Up @@ -1336,7 +1336,7 @@ namespace LuaPlayer
Eluna::Push(L, player->GetItemByEntry(entry));
return 1;
}

/**
* Returns the database textID of the [WorldObject]'s gossip header text for the [Player]
*
Expand Down Expand Up @@ -1404,7 +1404,7 @@ namespace LuaPlayer
Eluna::Push(L, player->GetTeamId());
return 1;
}

/**
* Returns amount of the specified [Item] the [Player] has.
*
Expand Down Expand Up @@ -1553,7 +1553,7 @@ namespace LuaPlayer
Eluna::Push(L, player->GetMailSize());
return 1;
}

/**
* Locks the player controls and disallows all movement and casting.
*
Expand Down Expand Up @@ -2013,7 +2013,7 @@ namespace LuaPlayer
return 0;
}
#endif

/**
* Shows the mailbox window to the player from specified guid.
*
Expand Down Expand Up @@ -2202,7 +2202,7 @@ namespace LuaPlayer
player->GetSession()->SendShowBank(obj->GET_GUID());
return 0;
}

/**
* Sends a vendor window to the [Player] from the [WorldObject] specified.
*
Expand Down Expand Up @@ -2966,7 +2966,7 @@ namespace LuaPlayer
player->AutoUnequipOffhandIfNeed();
return 1;
}

/**
* Returns true if the player can equip the given [Item] or item entry to the given slot, false otherwise.
*
Expand Down Expand Up @@ -3122,7 +3122,7 @@ namespace LuaPlayer
player->SetUInt32Value(PLAYER_FIELD_LIFETIME_HONORABLE_KILLS, currentKills + val);
return 0;
}

/**
* Adds the given amount of the specified item entry to the player.
*
Expand All @@ -3138,7 +3138,7 @@ namespace LuaPlayer
Eluna::Push(L, player->StoreNewItemInInventorySlot(itemId, itemCount));
return 1;
}

/**
* Removes the given amount of the specified [Item] from the player.
*
Expand Down Expand Up @@ -3399,9 +3399,9 @@ namespace LuaPlayer
/**
* Adds a new item to the gossip menu shown to the [Player] on next call to [Player:GossipSendMenu].
*
* sender and intid are numbers which are passed directly to the gossip selection handler. Internally they are partly used for the database gossip handling.
* code specifies whether to show a box to insert text to. The player inserted text is passed to the gossip selection handler.
* money specifies an amount of money the player needs to have to click the option. An error message is shown if the player doesn't have enough money.
* sender and intid are numbers which are passed directly to the gossip selection handler. Internally they are partly used for the database gossip handling.
* code specifies whether to show a box to insert text to. The player inserted text is passed to the gossip selection handler.
* money specifies an amount of money the player needs to have to click the option. An error message is shown if the player doesn't have enough money.
* Note that the money amount is only checked client side and is not removed from the player either. You will need to check again in your code before taking action.
*
* See also: [Player:GossipSendMenu], [Player:GossipAddQuests], [Player:GossipComplete], [Player:GossipClearMenu]
Expand Down Expand Up @@ -3487,7 +3487,7 @@ namespace LuaPlayer
* Clears the [Player]s current gossip item list.
*
* See also: [Player:GossipMenuAddItem], [Player:GossipSendMenu], [Player:GossipAddQuests], [Player:GossipComplete]
*
*
* Note: This is needed when you show a gossip menu without using gossip hello or select hooks which do this automatically.
* Usually this is needed when using [Player] is the sender of a Gossip Menu.
*/
Expand Down Expand Up @@ -3737,7 +3737,7 @@ namespace LuaPlayer
return 0;
}
#endif

ElunaRegister<Player> PlayerMethods[] =
{
// Getters
Expand Down Expand Up @@ -4029,7 +4029,7 @@ namespace LuaPlayer
{ "ClearHonorInfo", nullptr }, // classic only
{ "GetXP", nullptr }, // not implemented
{ "GetXPForNextLevel", nullptr }, // not implemented

{ NULL, NULL }
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/QuestMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ namespace LuaQuest
Eluna::Push(L, quest->GetType());
return 1;
}

ElunaRegister<Quest> QuestMethods[] =
{
// Getters
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Eluna/CMangos/SpellMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ namespace LuaSpell
spell->finish();
return 0;
}

ElunaRegister<Spell> SpellMethods[] =
{
// Getters
Expand Down
6 changes: 3 additions & 3 deletions src/modules/Eluna/CMangos/UnitMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,7 @@ namespace LuaUnit
int SetRooted(lua_State* L, Unit* unit)
{
bool apply = Eluna::CHECKVAL<bool>(L, 2, true);

unit->SetImmobilizedState(apply);
return 0;
}
Expand Down Expand Up @@ -2496,7 +2496,7 @@ namespace LuaUnit
#endif
return 0;
}

ElunaRegister<Unit> UnitMethods[] =
{
// Getters
Expand Down Expand Up @@ -2618,7 +2618,7 @@ namespace LuaUnit
{ "IsStandState", &LuaUnit::IsStandState },
#if defined(TBC) || defined(WOTLK)
{ "IsOnVehicle", &LuaUnit::IsOnVehicle },
#endif
#endif

// Other
{ "AddAura", &LuaUnit::AddAura },
Expand Down
Loading

0 comments on commit c4d38e5

Please sign in to comment.