namespace Content.Shared.Atmos.Piping.Unary.Components;
-[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
+[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class GasCanisterComponent : Component, IGasMixtureHolder
{
[DataField("port")]
/// <remarks>
/// If you want a more detailed description ask the original coder.
/// </remarks>
- [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
+ [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
public sealed partial class ConfigurationComponent : Component
{
/// <summary>
[RegisterComponent]
[Access(typeof(FollowerSystem))]
-[NetworkedComponent, AutoGenerateComponentState(RaiseAfterAutoHandleState = true)]
+[NetworkedComponent, AutoGenerateComponentState]
public sealed partial class FollowerComponent : Component
{
[AutoNetworkedField, DataField("following")]
SubscribeLocalEvent<FollowerComponent, MoveInputEvent>(OnFollowerMove);
SubscribeLocalEvent<FollowerComponent, PullStartedMessage>(OnPullStarted);
SubscribeLocalEvent<FollowerComponent, EntityTerminatingEvent>(OnFollowerTerminating);
- SubscribeLocalEvent<FollowerComponent, AfterAutoHandleStateEvent>(OnAfterHandleState);
SubscribeLocalEvent<FollowedComponent, ComponentGetStateAttemptEvent>(OnFollowedAttempt);
SubscribeLocalEvent<FollowerComponent, GotEquippedHandEvent>(OnGotEquippedHand);
StopFollowingEntity(uid, component.Following, deparent: false);
}
- private void OnAfterHandleState(Entity<FollowerComponent> entity, ref AfterAutoHandleStateEvent args)
- {
- StartFollowingEntity(entity, entity.Comp.Following);
- }
-
// Since we parent our observer to the followed entity, we need to detach
// before they get deleted so that we don't get recursively deleted too.
private void OnFollowedTerminating(EntityUid uid, FollowedComponent component, ref EntityTerminatingEvent args)