mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* ComponentNames are not sent over the network when components are created. * Removed ComponentStates array from EntityState, now the state is stored directly inside the CompChange struct. * Remove the unnecessary NetID property from ComponentState. * Remove Component.NetworkSynchronizeExistence. * Change GetNetComponents to return both the component and the component NetId. * Remove public usages of the Component.NetID property. * Adds the NetIDAttribute that can be applied to components. * Removed Component.NetID. * Revert changes to GetComponentState and how prediction works. * Adds component netID automatic generation. * Modifies ClientConsoleHost so that commands can be called before Initialize(). * Completely remove static NetIds. * Renamed NetIDAttribute to NetworkedComponentAttribute. * Fixing unit tests.
44 lines
1.6 KiB
C#
44 lines
1.6 KiB
C#
using Robust.Shared.Console;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Reflection;
|
|
|
|
namespace Robust.Client.GameObjects
|
|
{
|
|
internal class ClientComponentFactory : ComponentFactory
|
|
{
|
|
public ClientComponentFactory(IDynamicTypeFactoryInternal typeFactory, IReflectionManager reflectionManager, IConsoleHost conHost)
|
|
: base(typeFactory, reflectionManager, conHost)
|
|
{
|
|
// Required for the engine to work
|
|
RegisterIgnore("KeyBindingInput");
|
|
|
|
RegisterClass<MetaDataComponent>();
|
|
RegisterClass<TransformComponent>();
|
|
RegisterClass<MapComponent>();
|
|
RegisterClass<MapGridComponent>();
|
|
RegisterClass<PhysicsComponent>();
|
|
RegisterClass<CollisionWakeComponent>();
|
|
RegisterClass<ClientUserInterfaceComponent>();
|
|
RegisterClass<ContainerManagerComponent>();
|
|
RegisterClass<InputComponent>();
|
|
RegisterClass<SpriteComponent>();
|
|
RegisterClass<ClientOccluderComponent>();
|
|
RegisterClass<EyeComponent>();
|
|
RegisterClass<AppearanceComponent>();
|
|
RegisterClass<AppearanceTestComponent>();
|
|
RegisterClass<SnapGridComponent>();
|
|
RegisterClass<AnimationPlayerComponent>();
|
|
RegisterClass<TimerComponent>();
|
|
|
|
#if DEBUG
|
|
RegisterClass<DebugExceptionOnAddComponent>();
|
|
RegisterClass<DebugExceptionInitializeComponent>();
|
|
RegisterClass<DebugExceptionStartupComponent>();
|
|
#endif
|
|
|
|
}
|
|
}
|
|
}
|