Core/Chat: Corrected chat channel flag implementations

Port From (https://github.com/TrinityCore/TrinityCore/commit/d2baaac9ec9c0b0839d5868d9666aa0901031b28)
This commit is contained in:
hondacrx
2024-02-01 10:10:38 -05:00
parent a436f7b2d1
commit d68f52bdc3
8 changed files with 91 additions and 51 deletions
+2 -16
View File
@@ -1,6 +1,8 @@
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using System;
namespace Framework.Constants
{
public enum ChatNotify
@@ -65,22 +67,6 @@ namespace Framework.Constants
// LookingForGroup 0x50 = 0x40 | 0x10
}
public enum ChannelDBCFlags
{
None = 0x00000,
Initial = 0x00001, // General, Trade, Localdefense, Lfg
ZoneDep = 0x00002, // General, Trade, Localdefense, Guildrecruitment
Global = 0x00004, // Worlddefense
Trade = 0x00008, // Trade, Lfg
CityOnly = 0x00010, // Trade, Guildrecruitment, Lfg
CityOnly2 = 0x00020, // Trade, Guildrecruitment, Lfg
Defense = 0x10000, // Localdefense, Worlddefense
GuildReq = 0x20000, // Guildrecruitment
Lfg = 0x40000, // Lfg
Unk1 = 0x80000, // General
NoClientJoin = 0x200000
}
public enum ChannelMemberFlags
{
None = 0x00,
+33
View File
@@ -1079,6 +1079,7 @@ namespace Framework.Constants
Factional = 0x40
}
[Flags]
public enum CfgCategoriesCharsets
{
Any = 0x00,
@@ -1089,12 +1090,44 @@ namespace Framework.Constants
Chinese = 0x10
}
[Flags]
public enum CfgCategoriesFlags
{
None = 0x0,
Tournament = 0x1
}
[Flags]
public enum ChatChannelFlags
{
None = 0x00,
AutoJoin = 0x01,
ZoneBased = 0x02,
ReadOnly = 0x04,
AllowItemLinks = 0x08,
OnlyInCities = 0x10,
LinkedChannel = 0x20,
ZoneAttackAlerts = 0x10000,
GuildRecruitment = 0x20000,
LookingForGroup = 0x40000,
GlobalForTournament = 0x80000,
DisableRaidIcons = 0x100000,
Regional = 0x200000
}
public enum ChatChannelRuleset
{
None = 0,
Mentor = 1,
Disabled = 2,
ChromieTimeCataclysm = 3,
ChromieTimeBuringCrusade = 4,
ChromieTimeWrath = 5,
ChromieTimeMists = 6,
ChromieTimeWoD = 7,
ChromieTimeLegion = 8,
}
[Flags]
public enum ChrRacesFlag
{