stationMember.Station = station;
stationData.Grids.Add(mapGrid);
Dirty(station, stationData);
+ Dirty(mapGrid, stationMember);
RaiseLocalEvent(station, new StationGridAddedEvent(mapGrid, station, false), true);
/// <summary>
/// Indicates that a grid is a member of the given station.
/// </summary>
-[RegisterComponent, NetworkedComponent]
+[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class StationMemberComponent : Component
{
/// <summary>
/// Station that this grid is a part of.
/// </summary>
- [DataField]
+ [DataField, AutoNetworkedField]
public EntityUid Station = EntityUid.Invalid;
}