DarkflameServer/dGame
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
..
dBehaviors fix: Buff FX not playing and general BuffComponent improvements (#1296) 2023-12-01 10:12:48 -06:00
dComponents fix: add Nexus Tower missing scripts (#1349) 2023-12-22 23:53:21 -08:00
dEntity format codebase 2022-07-28 08:39:57 -05:00
dGameMessages feat: Improve console output to show packet enum names (magic_enum) (#1344) 2023-12-23 10:51:59 -06:00
dInventory fix: general issues with dismantling (#1304) 2023-11-18 01:15:47 -06:00
dMission feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
dPropertyBehaviors feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
dUtilities fix: add Nexus Tower missing scripts (#1349) 2023-12-22 23:53:21 -08:00
Character.cpp refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00
Character.h refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00
CMakeLists.txt Organize dScripts (#814) 2022-11-03 12:57:54 -05:00
Entity.cpp chore: rename zonecontrolcomp to minigamecontrolcomp 2023-12-04 20:59:08 -06:00
Entity.h Entity: Fix death behavior of 0 (#1319) 2023-11-25 22:50:28 -06:00
EntityManager.cpp fix: add Nexus Tower missing scripts (#1349) 2023-12-22 23:53:21 -08:00
EntityManager.h refactor: re-write AOE, add FilterTargets, Update TacArc Reading (#1035) 2023-10-09 15:18:51 -05:00
LeaderboardManager.cpp refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00
LeaderboardManager.h Add weekly filter 2023-06-05 16:04:56 -07:00
Player.cpp fix: Character access after deletion (#1348) 2023-12-21 22:12:52 -06:00
Player.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TeamManager.cpp Teams: Default team loot to ffa (#1224) 2023-10-18 09:18:22 -05:00
TeamManager.h Teams: Default team loot to ffa (#1224) 2023-10-18 09:18:22 -05:00
TradingManager.cpp feat: Abstract Logger and simplify code (#1207) 2023-10-21 16:31:55 -07:00
TradingManager.h format codebase 2022-07-28 08:39:57 -05:00
User.cpp fix: general crashes (#1336) 2023-12-16 12:27:06 -06:00
User.h fix: general crashes (#1336) 2023-12-16 12:27:06 -06:00
UserManager.cpp Fix backwards name check (#1327) 2023-11-29 00:25:06 -08:00
UserManager.h refactor: Database abstraction and organization of files (#1274) 2023-11-17 18:47:18 -06:00