1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00

Apply project code style to files

This commit is contained in:
Maple 2023-05-23 19:24:38 -03:00
parent 50a7552bba
commit 26921a3f0f
2 changed files with 1221 additions and 1212 deletions

View file

@ -6,11 +6,13 @@
/* This file has been automatically generated. /* This file has been automatically generated.
Changes will be lost upon regeneration. Changes will be lost upon regeneration.
To change the content edit tools/exd_common_gen */ To change the content edit tools/exd_common_gen */
namespace Sapphire::Common { namespace Sapphire::Common
{
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ActionCategory.exd //ActionCategory.exd
enum class ActionCategory : uint8_t { enum class ActionCategory: uint8_t
{
None = 0, None = 0,
Autoattack = 1, Autoattack = 1,
Spell = 2, Spell = 2,
@ -30,11 +32,12 @@ namespace Sapphire::Common {
//1 = 16, //1 = 16,
Artillery = 17, Artillery = 17,
//2 = 18, //2 = 18,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//BaseParam.exd //BaseParam.exd
enum class BaseParam : uint8_t { enum class BaseParam: uint8_t
{
None = 0, None = 0,
Strength = 1, Strength = 1,
Dexterity = 2, Dexterity = 2,
@ -109,25 +112,19 @@ namespace Sapphire::Common {
Control = 71, Control = 71,
Gathering = 72, Gathering = 72,
Perception = 73, Perception = 73,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//BeastReputationRank.exd //BeastReputationRank.exd
enum class BeastReputationRank : uint8_t { enum class BeastReputationRank: uint8_t
None = 0, {
Neutral = 1, None = 0, Neutral = 1, Recognized = 2, Friendly = 3, Trusted = 4, Respected = 5, Honored = 6, Sworn = 7, Allied = 8,
Recognized = 2, };
Friendly = 3,
Trusted = 4,
Respected = 5,
Honored = 6,
Sworn = 7,
Allied = 8,
};
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//BeastTribe.exd //BeastTribe.exd
enum class BeastTribe : uint8_t { enum class BeastTribe: uint8_t
{
None = 0, None = 0,
Amaljaa = 1, Amaljaa = 1,
Sylphs = 2, Sylphs = 2,
@ -146,11 +143,12 @@ namespace Sapphire::Common {
Arkasodara = 15, Arkasodara = 15,
Omicrons = 16, Omicrons = 16,
Loporrits = 17, Loporrits = 17,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ClassJob.exd //ClassJob.exd
enum class ClassJob : uint8_t { enum class ClassJob: uint8_t
{
Adventurer = 0, Adventurer = 0,
Gladiator = 1, Gladiator = 1,
Pugilist = 2, Pugilist = 2,
@ -192,11 +190,12 @@ namespace Sapphire::Common {
Dancer = 38, Dancer = 38,
Reaper = 39, Reaper = 39,
Sage = 40, Sage = 40,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ContentType.exd //ContentType.exd
enum class ContentType : uint8_t { enum class ContentType: uint8_t
{
None = 0, None = 0,
DutyRoulette = 1, DutyRoulette = 1,
Dungeons = 2, Dungeons = 2,
@ -228,30 +227,34 @@ namespace Sapphire::Common {
UltimateRaids = 28, UltimateRaids = 28,
//5 = 29, //5 = 29,
VAndCDungeonFinder = 30, VAndCDungeonFinder = 30,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//EmoteCategory.exd //EmoteCategory.exd
enum class EmoteCategory : uint8_t { enum class EmoteCategory: uint8_t
{
None = 0, General = 1, Special = 2, Expressions = 3, None = 0, General = 1, Special = 2, Expressions = 3,
//1 = 4, //1 = 4,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ExVersion.exd //ExVersion.exd
enum class ExVersion : uint8_t { enum class ExVersion: uint8_t
{
ARealmReborn = 0, Heavensward = 1, Stormblood = 2, Shadowbringers = 3, Endwalker = 4, ARealmReborn = 0, Heavensward = 1, Stormblood = 2, Shadowbringers = 3, Endwalker = 4,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//GrandCompany.exd //GrandCompany.exd
enum class GrandCompany : uint8_t { enum class GrandCompany: uint8_t
{
None = 0, Maelstrom = 1, OrderoftheTwinAdder = 2, ImmortalFlames = 3, None = 0, Maelstrom = 1, OrderoftheTwinAdder = 2, ImmortalFlames = 3,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//GuardianDeity.exd //GuardianDeity.exd
enum class GuardianDeity : uint8_t { enum class GuardianDeity: uint8_t
{
None = 0, None = 0,
HalonetheFury = 1, HalonetheFury = 1,
MenphinatheLover = 2, MenphinatheLover = 2,
@ -265,11 +268,12 @@ namespace Sapphire::Common {
NaldthaltheTraders = 10, NaldthaltheTraders = 10,
NophicatheMatron = 11, NophicatheMatron = 11,
AlthyktheKeeper = 12, AlthyktheKeeper = 12,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ItemUICategory.exd //ItemUICategory.exd
enum class ItemUICategory : uint8_t { enum class ItemUICategory: uint8_t
{
None = 0, None = 0,
PugilistsArm = 1, PugilistsArm = 1,
GladiatorsArm = 2, GladiatorsArm = 2,
@ -380,11 +384,12 @@ namespace Sapphire::Common {
DancersArm = 107, DancersArm = 107,
ReapersArm = 108, ReapersArm = 108,
SagesArm = 109, SagesArm = 109,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//ItemSearchCategory.exd //ItemSearchCategory.exd
enum class ItemSearchCategory : uint8_t { enum class ItemSearchCategory: uint8_t
{
None = 0, None = 0,
PrimaryArms = 1, PrimaryArms = 1,
PrimaryTools = 2, PrimaryTools = 2,
@ -486,11 +491,12 @@ namespace Sapphire::Common {
8 = 98, 8 = 98,
9 = 99, 9 = 99,
10 = 100,*/ 10 = 100,*/
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//OnlineStatus.exd //OnlineStatus.exd
enum class OnlineStatus : uint8_t { enum class OnlineStatus: uint8_t
{
None = 0, None = 0,
GameQA = 1, GameQA = 1,
GameMaster = 2, GameMaster = 2,
@ -539,17 +545,19 @@ namespace Sapphire::Common {
FreeCompany = 45, FreeCompany = 45,
GrandCompany = 46, GrandCompany = 46,
Online = 47, Online = 47,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//Race.exd //Race.exd
enum class Race : uint8_t { enum class Race: uint8_t
{
None = 0, Hyur = 1, Elezen = 2, Lalafell = 3, Miqote = 4, Roegadyn = 5, AuRa = 6, Hrothgar = 7, Viera = 8, None = 0, Hyur = 1, Elezen = 2, Lalafell = 3, Miqote = 4, Roegadyn = 5, AuRa = 6, Hrothgar = 7, Viera = 8,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//Tribe.exd //Tribe.exd
enum class Tribe : uint8_t { enum class Tribe: uint8_t
{
None = 0, None = 0,
Midlander = 1, Midlander = 1,
Highlander = 2, Highlander = 2,
@ -567,11 +575,12 @@ namespace Sapphire::Common {
TheLost = 14, TheLost = 14,
Rava = 15, Rava = 15,
Veena = 16, Veena = 16,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//Town.exd //Town.exd
enum class Town : uint8_t { enum class Town: uint8_t
{
Nowheresville = 0, LimsaLominsa = 1, Gridania = 2, Uldah = 3, Ishgard = 4, //= 5, Nowheresville = 0, LimsaLominsa = 1, Gridania = 2, Uldah = 3, Ishgard = 4, //= 5,
//1 = 6, //1 = 6,
Kugane = 7, //2 = 8, Kugane = 7, //2 = 8,
@ -579,11 +588,12 @@ namespace Sapphire::Common {
Crystarium = 10, //4 = 11, Crystarium = 10, //4 = 11,
OldSharlayan = 12, OldSharlayan = 12,
//5 = 13, //5 = 13,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//Weather.exd //Weather.exd
enum class Weather : uint8_t { enum class Weather: uint8_t
{
None = 0, None = 0,
ClearSkies = 1, ClearSkies = 1,
FairSkies = 2, FairSkies = 2,
@ -763,11 +773,12 @@ namespace Sapphire::Common {
DimensionalDisruption6 = 176, DimensionalDisruption6 = 176,
Pandaemonium3 = 177, Pandaemonium3 = 177,
Pandaemonium4 = 178, Pandaemonium4 = 178,
}; };
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
//HousingAppeal.exd //HousingAppeal.exd
enum class HousingAppeal : uint8_t { enum class HousingAppeal: uint8_t
{
None = 0, None = 0,
Emporium = 1, Emporium = 1,
Boutique = 2, Boutique = 2,
@ -793,6 +804,6 @@ namespace Sapphire::Common {
Bakery = 22, Bakery = 22,
UnderRenovation = 23, UnderRenovation = 23,
ConcertHall = 24, ConcertHall = 24,
}; };
} }
#endif #endif

View file

@ -3,16 +3,16 @@
#include <stdint.h> #include <stdint.h>
namespace Sapphire::Network::Packets namespace Sapphire::Network::Packets {
{
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Lobby Connection IPC Codes /// Lobby Connection IPC Codes
/** /**
* Server IPC Lobby Type Codes. * Server IPC Lobby Type Codes.
*/ */
enum ServerLobbyIpcType : uint16_t enum ServerLobbyIpcType :
{ uint16_t
{
LobbyError = 0x0002, LobbyError = 0x0002,
LobbyServiceAccountList = 0x000C, LobbyServiceAccountList = 0x000C,
LobbyCharList = 0x000D, LobbyCharList = 0x000D,
@ -21,28 +21,27 @@ namespace Sapphire::Network::Packets
LobbyServerList = 0x0015, LobbyServerList = 0x0015,
LobbyRetainerList = 0x0017, LobbyRetainerList = 0x0017,
}; };
/** /**
* Client IPC Lobby Type Codes. * Client IPC Lobby Type Codes.
*/ */
enum ClientLobbyIpcType : uint16_t enum ClientLobbyIpcType :
{ uint16_t
ReqCharList = 0x0003, {
ReqEnterWorld = 0x0004, ReqCharList = 0x0003, ReqEnterWorld = 0x0004, ClientVersionInfo = 0x0005,
ClientVersionInfo = 0x0005,
ReqCharDelete = 0x000A, ReqCharDelete = 0x000A, ReqCharCreate = 0x000B,
ReqCharCreate = 0x000B, };
};
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Zone Connection IPC Codes /// Zone Connection IPC Codes
/** /**
* Server IPC Zone Type Codes. * Server IPC Zone Type Codes.
*/ */
enum ServerZoneIpcType : uint16_t enum ServerZoneIpcType :
{ uint16_t
{
Ping = 0x2c0, // updated 6.40 Ping = 0x2c0, // updated 6.40
Init = 0x12a, // updated 6.40 Init = 0x12a, // updated 6.40
@ -70,14 +69,11 @@ namespace Sapphire::Network::Packets
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
ChatBanned = 0xF06B, ChatBanned = 0xF06B, Playtime = 0x181, // updated 6.40
Playtime = 0x181, // updated 6.40
Logout = 0x18a, // updated 6.40 Logout = 0x18a, // updated 6.40
CFNotify = 0x3e0, // updated 6.40 CFNotify = 0x3e0, // updated 6.40
CFMemberStatus = 0x0079, CFMemberStatus = 0x0079, CFDutyInfo = 0xe0, // updated 6.40
CFDutyInfo = 0xe0, // updated 6.40 CFPlayerInNeed = 0xF07F, CFPreferredRole = 0x221, // updated 6.40
CFPlayerInNeed = 0xF07F,
CFPreferredRole = 0x221, // updated 6.40
CFCancel = 0x77, // updated 6.40 CFCancel = 0x77, // updated 6.40
SocialRequestError = 0xF0AD, SocialRequestError = 0xF0AD,
@ -330,13 +326,14 @@ namespace Sapphire::Network::Packets
EnvironmentControl = 0x108, // updated 6.40 EnvironmentControl = 0x108, // updated 6.40
IslandWorkshopSupplyDemand = 0x1b7, // updated 6.40 IslandWorkshopSupplyDemand = 0x1b7, // updated 6.40
}; };
/** /**
* Client IPC Zone Type Codes. * Client IPC Zone Type Codes.
*/ */
enum ClientZoneIpcType : uint16_t enum ClientZoneIpcType :
{ uint16_t
{
PingHandler = 0x272, // updated 6.40 PingHandler = 0x272, // updated 6.40
InitHandler = 0x397, // updated 6.40 InitHandler = 0x397, // updated 6.40
@ -357,8 +354,7 @@ namespace Sapphire::Network::Packets
CreateCrossWorldLS = 0x035D, // updated 5.58h CreateCrossWorldLS = 0x035D, // updated 5.58h
ChatHandler = 0xd3, // updated 6.40 ChatHandler = 0xd3, // updated 6.40
PartyChatHandler = 0x0065, PartyChatHandler = 0x0065, PartySetLeaderHandler = 0x036C, // updated 5.58h
PartySetLeaderHandler = 0x036C, // updated 5.58h
LeavePartyHandler = 0x019D, // updated 5.58h LeavePartyHandler = 0x019D, // updated 5.58h
KickPartyMemberHandler = 0x0262, // updated 5.58h KickPartyMemberHandler = 0x0262, // updated 5.58h
DisbandPartyHandler = 0x0276, // updated 5.58h DisbandPartyHandler = 0x0276, // updated 5.58h
@ -441,30 +437,32 @@ namespace Sapphire::Network::Packets
WorldInteractionHandler = 0x0274, // updated 5.58h WorldInteractionHandler = 0x0274, // updated 5.58h
Dive = 0x018C, // updated 6.30h Dive = 0x018C, // updated 6.30h
}; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Chat Connection IPC Codes /// Chat Connection IPC Codes
/** /**
* Server IPC Chat Type Codes. * Server IPC Chat Type Codes.
*/ */
enum ServerChatIpcType : uint16_t enum ServerChatIpcType :
{ uint16_t
{
Tell = 0x0064, // updated for sb Tell = 0x0064, // updated for sb
PublicContentTell = 0xF0FB, // added 4.5, this is used when receiving a /tell in PublicContent instances such as Eureka or Bozja (prepended F conflicts with TradeReturnEventHandler 6.38) PublicContentTell = 0xF0FB, // added 4.5, this is used when receiving a /tell in PublicContent instances such as Eureka or Bozja (prepended F conflicts with TradeReturnEventHandler 6.38)
TellErrNotFound = 0x0066, TellErrNotFound = 0x0066,
FreeCompanyEvent = 0x012C, // added 5.0 FreeCompanyEvent = 0x012C, // added 5.0
}; };
/** /**
* Client IPC Chat Type Codes. * Client IPC Chat Type Codes.
*/ */
enum ClientChatIpcType : uint16_t enum ClientChatIpcType :
{ uint16_t
{
TellReq = 0x0064, TellReq = 0x0064,
PublicContentTellReq = 0x0326, // updated 5.35 hotfix, this is used when sending a /tell in PublicContent instances such as Eureka or Bozja PublicContentTellReq = 0x0326, // updated 5.35 hotfix, this is used when sending a /tell in PublicContent instances such as Eureka or Bozja
}; };
} }