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.
42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
using Robust.Shared.Console;
|
|
using Robust.Shared.Containers;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Reflection;
|
|
|
|
namespace Robust.Server.GameObjects
|
|
{
|
|
internal class ServerComponentFactory : ComponentFactory
|
|
{
|
|
public ServerComponentFactory(IDynamicTypeFactoryInternal typeFactory, IReflectionManager reflectionManager, IConsoleHost conHost)
|
|
: base(typeFactory, reflectionManager, conHost)
|
|
{
|
|
RegisterIgnore("Input");
|
|
RegisterIgnore("AnimationPlayer");
|
|
|
|
RegisterClass<MetaDataComponent>();
|
|
RegisterClass<TransformComponent>();
|
|
RegisterClass<MapComponent>();
|
|
RegisterClass<MapGridComponent>();
|
|
RegisterClass<EyeComponent>();
|
|
RegisterClass<ActorComponent>();
|
|
RegisterClass<PhysicsComponent>();
|
|
RegisterClass<CollisionWakeComponent>();
|
|
RegisterClass<ContainerManagerComponent>();
|
|
RegisterClass<OccluderComponent>();
|
|
RegisterClass<SpriteComponent>();
|
|
RegisterClass<AppearanceComponent>();
|
|
RegisterClass<SnapGridComponent>();
|
|
RegisterClass<ServerUserInterfaceComponent>();
|
|
RegisterClass<TimerComponent>();
|
|
RegisterClass<MapSaveIdComponent>();
|
|
|
|
#if DEBUG
|
|
RegisterClass<DebugExceptionOnAddComponent>();
|
|
RegisterClass<DebugExceptionInitializeComponent>();
|
|
RegisterClass<DebugExceptionStartupComponent>();
|
|
#endif
|
|
}
|
|
}
|
|
}
|