DarkflameServer/dCommon
David Markowitz 4fe335cc66
Refactor: Amf3 implementation (#998)
* Update AMFDeserializeTests.cpp

Redo Amf3 functionality

Overhaul the whole thing due to it being outdated and clunky to use

Sometimes you want to keep the value

Update AMFDeserializeTests.cpp

* Fix enum and constructors

Correct enum to a class and simplify names.
Add a proper default constructor

* Update MasterServer.cpp

* Fix bugs and add more tests

* Refactor: AMF with templates in mind

- Remove hard coded bodge
- Use templates and generics to allow for much looser typing and strengthened implementation
- Move code into header only implementation for portability

Refactor: Convert AMF implementation to templates

- Rip out previous implementation
- Remove all extraneous terminology
- Add proper overloads for all types of inserts
- Fix up tests and codebase

* Fix compiler errors

* Check for null first

* Add specialization for const char*

* Update tests for new template specialization

* Switch BitStream to use references

* Rename files

* Check enum bounds on deserialize

I did this on a phone
2023-05-13 17:22:00 -05:00
..
dClient Resolve most compiler warnings (#1053) 2023-04-12 11:48:20 -05:00
dEnums Define comp 103 as Gate Rush Control comp (#1078) 2023-05-11 06:54:41 -05:00
Amf3.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
AMFDeserialize.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
AMFDeserialize.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
AmfSerialize.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
AmfSerialize.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
BinaryIO.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryIO.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryPathFinder.cpp Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
BinaryPathFinder.h Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
Brick.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
BrickByBrickFix.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BrickByBrickFix.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
CMakeLists.txt Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
dConfig.cpp Add support to reload the config (#868) 2022-12-04 16:25:58 -06:00
dConfig.h Remove GameConfig (#874) 2023-01-06 23:21:40 -06:00
Diagnostics.cpp Resolve most compiler warnings (#1053) 2023-04-12 11:48:20 -05:00
Diagnostics.h format codebase 2022-07-28 08:39:57 -05:00
dLogger.cpp Fix debug logging newline (#940) 2023-01-04 08:15:06 -06:00
dLogger.h format codebase 2022-07-28 08:39:57 -05:00
FdbToSqlite.cpp Address Docker issues and remove need to extract cdclient.fdb (#895) 2023-01-06 23:04:20 -06:00
FdbToSqlite.h Address Docker issues and remove need to extract cdclient.fdb (#895) 2023-01-06 23:04:20 -06:00
Game.h Merge remote-tracking branch 'upstream/main' into ServerShutdown 2022-12-15 18:43:28 -08:00
GeneralUtils.cpp Allow case insensitive commands (#1047) 2023-04-08 15:45:45 -05:00
GeneralUtils.h breakout object bits into scoped enum (#997) 2023-04-25 13:17:40 -05:00
LDFFormat.cpp Add tests for LDF parsing and serialization. Cleanup LDF (#1062) 2023-05-02 17:19:20 -05:00
LDFFormat.h Add tests for LDF parsing and serialization. Cleanup LDF (#1062) 2023-05-02 17:19:20 -05:00
MD5.cpp format codebase 2022-07-28 08:39:57 -05:00
MD5.h format codebase 2022-07-28 08:39:57 -05:00
Metrics.cpp format codebase 2022-07-28 08:39:57 -05:00
Metrics.hpp format codebase 2022-07-28 08:39:57 -05:00
NiPoint3.cpp Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
NiPoint3.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
NiQuaternion.cpp format codebase 2022-07-28 08:39:57 -05:00
NiQuaternion.h format codebase 2022-07-28 08:39:57 -05:00
SHA512.cpp format codebase 2022-07-28 08:39:57 -05:00
SHA512.h format codebase 2022-07-28 08:39:57 -05:00
Singleton.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
Type.cpp format codebase 2022-07-28 08:39:57 -05:00
Type.h format codebase 2022-07-28 08:39:57 -05:00
ZCompression.cpp Add ZLIB for Windows (#768) 2022-09-05 20:28:47 -07:00
ZCompression.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00