mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Added a basic server simulation framework for help with tests. * Moved as much as possible to Robust.Shared/Containers. Moved ContainerSlot from content to engine. * Moved ClientContainer to shared. * Merged client/server ContainerManagerComponents into a single shared version. * ContainerManagerComponent is now implicitly registered with the attributes. * Migrated to 2021 serialization technology. * Existing Unit Tests work. * More tests coverage. Fixed bug with transferring items between containers. * Container Type info is now sent over the network. * Merge client/server container systems. * Code cleanup. * Attempted to fix dictionary serialization. Logs warning when trying to check if an unknown GridId is paused. * Remove OldCode.
65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Physics;
|
|
|
|
namespace Robust.Client.GameObjects
|
|
{
|
|
public class ClientComponentFactory : ComponentFactory
|
|
{
|
|
public ClientComponentFactory()
|
|
{
|
|
// Required for the engine to work
|
|
Register<MetaDataComponent>();
|
|
RegisterReference<MetaDataComponent, IMetaDataComponent>();
|
|
|
|
// Required for the engine to work
|
|
Register<TransformComponent>();
|
|
RegisterReference<TransformComponent, ITransformComponent>();
|
|
|
|
Register<MapComponent>();
|
|
RegisterReference<MapComponent, IMapComponent>();
|
|
|
|
Register<MapGridComponent>();
|
|
RegisterReference<MapGridComponent, IMapGridComponent>();
|
|
|
|
Register<PhysicsComponent>();
|
|
RegisterReference<PhysicsComponent, IPhysBody>();
|
|
RegisterReference<PhysicsComponent, IPhysicsComponent>();
|
|
RegisterIgnore("KeyBindingInput");
|
|
|
|
Register<InputComponent>();
|
|
|
|
Register<SpriteComponent>();
|
|
RegisterReference<SpriteComponent, SharedSpriteComponent>();
|
|
RegisterReference<SpriteComponent, ISpriteComponent>();
|
|
|
|
Register<ClientOccluderComponent>();
|
|
RegisterReference<ClientOccluderComponent, OccluderComponent>();
|
|
|
|
Register<EyeComponent>();
|
|
RegisterReference<EyeComponent, SharedEyeComponent>();
|
|
|
|
Register<AppearanceComponent>();
|
|
RegisterReference<AppearanceComponent, SharedAppearanceComponent>();
|
|
|
|
Register<AppearanceTestComponent>();
|
|
Register<SnapGridComponent>();
|
|
|
|
Register<ClientUserInterfaceComponent>();
|
|
RegisterReference<ClientUserInterfaceComponent, SharedUserInterfaceComponent>();
|
|
|
|
Register<AnimationPlayerComponent>();
|
|
|
|
Register<TimerComponent>();
|
|
|
|
#if DEBUG
|
|
Register<DebugExceptionOnAddComponent>();
|
|
Register<DebugExceptionExposeDataComponent>();
|
|
Register<DebugExceptionInitializeComponent>();
|
|
Register<DebugExceptionStartupComponent>();
|
|
#endif
|
|
|
|
}
|
|
}
|
|
}
|