DarkflameServer/dGame/dComponents
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
..
AchievementCacheKey.h cleanup enums to make them more consistent 2023-01-22 17:38:47 -06:00
BaseCombatAIComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
BaseCombatAIComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
BouncerComponent.cpp Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
BouncerComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
BuffComponent.cpp CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
BuffComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
BuildBorderComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
BuildBorderComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
CharacterComponent.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
CharacterComponent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
CMakeLists.txt Split out LUTriggers into it's own component (#986) 2023-02-10 02:29:53 -06:00
Component.cpp format codebase 2022-07-28 08:39:57 -05:00
Component.h format codebase 2022-07-28 08:39:57 -05:00
ControllablePhysicsComponent.cpp feature: Implement FallSpeedBehavior (#1084) 2023-05-13 09:30:59 -05:00
ControllablePhysicsComponent.h feature: Implement FallSpeedBehavior (#1084) 2023-05-13 09:30:59 -05:00
DestroyableComponent.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
DestroyableComponent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
InventoryComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
InventoryComponent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
LevelProgressionComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
LevelProgressionComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
LUPExhibitComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
LUPExhibitComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
MissionComponent.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
MissionComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
MissionOfferComponent.cpp CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
MissionOfferComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
ModelComponent.cpp breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
ModelComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
ModuleAssemblyComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ModuleAssemblyComponent.h Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
MovementAIComponent.cpp Use epsilon comparison 2023-04-11 22:25:02 -07:00
MovementAIComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
MovingPlatformComponent.cpp dGame Precompiled header improvements (#876) 2023-01-06 23:17:05 -06:00
MovingPlatformComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PetComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
PetComponent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
PhantomPhysicsComponent.cpp Implement some scripts for alpha FV (#1049) 2023-04-12 11:46:31 -05:00
PhantomPhysicsComponent.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
PlayerForcedMovementComponent.cpp delta compression fixes (#937) 2023-01-03 11:22:04 -06:00
PlayerForcedMovementComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PossessableComponent.cpp Add change idle flags behavior and GM (#871) 2022-12-16 15:24:13 -06:00
PossessableComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PossessorComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
PossessorComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PropertyComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
PropertyComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PropertyEntranceComponent.cpp Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
PropertyEntranceComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PropertyManagementComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
PropertyManagementComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
PropertyVendorComponent.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
PropertyVendorComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
ProximityMonitorComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ProximityMonitorComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
RacingControlComponent.cpp fix: make exiting the race work (#1082) 2023-05-10 04:05:56 -05:00
RacingControlComponent.h Fix race exit dialogue always exiting (#1077) 2023-05-09 00:40:00 -05:00
RailActivatorComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
RailActivatorComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
RebuildComponent.cpp fix: prevent negative imagination (#1083) 2023-05-11 06:37:02 -05:00
RebuildComponent.h Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
RenderComponent.cpp CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
RenderComponent.h Refactor: Amf3 implementation (#998) 2023-05-13 17:22:00 -05:00
RigidbodyPhantomPhysicsComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
RigidbodyPhantomPhysicsComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
RocketLaunchLupComponent.cpp remove cdclient include 2022-05-17 10:20:36 -05:00
RocketLaunchLupComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
RocketLaunchpadControlComponent.cpp Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
RocketLaunchpadControlComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
ScriptedActivityComponent.cpp Removed some hardcoded logic for racing (#1075) 2023-05-08 04:38:08 -05:00
ScriptedActivityComponent.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
ShootingGalleryComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
ShootingGalleryComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
SimplePhysicsComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
SimplePhysicsComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
SkillComponent.cpp Breakout message identifiers (#1065) 2023-05-03 16:38:32 -05:00
SkillComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
SoundTriggerComponent.cpp format codebase 2022-07-28 08:39:57 -05:00
SoundTriggerComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
SwitchComponent.cpp Breakout rest of the enums from dCommonVars and clean it up (#1061) 2023-05-02 17:39:21 -05:00
SwitchComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00
TriggerComponent.cpp fix: add check for arg nums on handlepushobject (#1081) 2023-05-10 07:44:21 -05:00
TriggerComponent.h Implement Timer handlers in triggers and ontimerdone trigger event (#1031) 2023-04-18 12:48:03 -05:00
VehiclePhysicsComponent.cpp Add random end of race behavior (#1056) 2023-04-18 01:40:20 -05:00
VehiclePhysicsComponent.h Add random end of race behavior (#1056) 2023-04-18 01:40:20 -05:00
VendorComponent.cpp CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
VendorComponent.h breakout the component types into a scoped enum (#1002) 2023-03-04 01:16:37 -06:00