DarkflameServer/dCommon/dEnums
jadebenn fcf4d6c6fa
feat: Improve console output to show packet enum names (magic_enum) (#1344)
* add enum stringification functionality from third party source

* squashed commit

* Macros: Add test and improve speed

Space macros out
utilize cache locality
ensure no lost functionality

* moved stringify code to dCommon

* Rename #defines in stringify enum tests

* Revert "moved stringify code to dCommon"

This reverts commit 33fa5f8d2f.

* improve macro functionality

change function handle

formatting and function definition tweaks

* typo fixes

* moved code to dCommon/dEnums and tests to dCommonTests/dEnumsTests

* initial magic_enums alternate implementation of enum stringification

* deleted unused tests

* reverted compile flag oopsy and fixed output types

* fixed testing suite

* test formatting improvement

* formatting again :(

* added gm string to "aborting gm!" message

* Push my suggestion for CI tests.

* updated magic enum test

* fix test variable type

* added gm test

* making sure magic_enum is on a release branch

* tidying up console outputs

* re-implemented enum array access for performance

* now it is bugged :(

* nvm, working

* helping out the snowflake compilers

* changed return type too

* optimization too

* formatting too I guess because why not

* being even more painfully specific

* Update WorldServer.cpp to match emo's feedback

* Update MagicEnumTests.cpp to use srand(time(NULL))

* Update eGameMessageType.h - formatting

* Trying to fix the crash but can't actually compile the code to check on my own rn

* Update WorldServer.cpp - third try at this

* Update MagicEnumTests.cpp - use better macro definitions

* Update MagicEnumTests.cpp - c string comparison fix

* addressing all but the cmake feedback

* fixed cmake to the best of my very limited ability

* added tests to verify magic enum arrays are pre-sorted

* updated

---------

Co-authored-by: David Markowitz <EmosewaMC@gmail.com>
Co-authored-by: Jettford <mrjettbradford@gmail.com>
2023-12-23 10:51:59 -06:00
..
dCommonVars.h chore: cleanup LU(W)string writing (#1188) 2023-09-20 20:06:28 -05:00
dpCollisionGroups.h Move enums to a single directory 2022-11-26 14:22:00 -08:00
dpCommon.h Move enums to a single directory 2022-11-26 14:22:00 -08:00
dPlatforms.h Move enums to a single directory 2022-11-26 14:22:00 -08:00
eAddFriendResponseCode.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eAddFriendResponseType.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eAninmationFlags.h Add change idle flags behavior and GM (#871) 2022-12-16 15:24:13 -06:00
eAuthMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eBasicAttackSuccessTypes.h Basic Attack Behavior Live Accuracy Improvements (#926) 2022-12-28 14:04:37 -08:00
eBlueprintSaveResponseType.h dGame Precompiled header improvements (#876) 2023-01-06 23:17:05 -06:00
eBubbleType.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eBuildType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eCharacterCreationResponse.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eCharacterVersion.h Add speedbase readling and writing to the level prograssion component and impli proper character versions for fixes (#856) 2022-12-19 13:45:50 -06:00
eChatInternalMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eChatMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eCinematicEvent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eClientMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eConnectionType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eControlScheme.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eCyclingMode.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eEndBehavior.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
eGameActivity.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eGameMasterLevel.h breakout gmlevel into a scoped enum (#996) 2023-03-24 18:16:45 -05:00
eGameMessageType.h feat: Improve console output to show packet enum names (magic_enum) (#1344) 2023-12-23 10:51:59 -06:00
eHelpType.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eInventoryType.h Add Delete Inventory Slash Command (#865) 2022-12-18 09:46:04 -06:00
eItemSetPassiveAbilityID.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eItemType.h Resolution of accidental shifting of eItemType enum (#976) 2023-01-25 16:21:12 -08:00
eKillType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eLoginResponse.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eLootSourceType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eMasterMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eMatchUpdate.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eMissionLockState.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eMissionState.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eMissionTaskType.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eMovementPlatformState.h dGame Precompiled header improvements (#876) 2023-01-06 23:17:05 -06:00
eObjectBits.h breakout object bits into scoped enum (#997) 2023-04-25 13:17:40 -05:00
eObjectWorldState.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
ePackageType.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
ePermissionMap.h chore: remove uneeded old perm map check (#1240) 2023-10-25 11:44:57 -05:00
ePetTamingNotifyType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
ePhysicsEffectType.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
ePlayerFlag.h feat: Add ability to toggle skipping of cinematics (#1312) 2023-11-21 18:04:44 -08:00
eQuickBuildFailReason.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eRacingTaskParam.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
eRebuildState.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eRenameResponse.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eReplicaComponentType.h chore: rename zonecontrolcomp to minigamecontrolcomp 2023-12-04 20:59:08 -06:00
eReplicaPacketType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eServerDisconnectIdentifiers.h Breakout ServerDisconnectIdentifiers into an enum (#995) 2023-02-19 04:29:14 -08:00
eServerMessageType.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
eSqliteDataType.h Implement FDB to SQLite (#872) 2022-12-05 00:57:58 -08:00
eStateChangeType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eTerminateType.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eTriggerCommandType.h Split out LUTriggers into it's own component (#986) 2023-02-10 02:29:53 -06:00
eTriggerEventType.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
eUnequippableActiveType.h Move enums to a single directory 2022-11-26 14:22:00 -08:00
eUseItemResponse.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
eWorldMessageType.h feat: Improve console output to show packet enum names (magic_enum) (#1344) 2023-12-23 10:51:59 -06:00
StringifiedEnum.h feat: Improve console output to show packet enum names (magic_enum) (#1344) 2023-12-23 10:51:59 -06:00