Make raiselocalevent not broadcast by default (#8998)

This commit is contained in:
metalgearsloth
2022-06-22 09:53:41 +10:00
committed by GitHub
parent 360a6b8b00
commit 8905996cfc
76 changed files with 165 additions and 165 deletions

View File

@@ -224,7 +224,7 @@ public sealed class StationSystem : EntitySystem
stationMember.Station = station;
stationData.Grids.Add(gridComponent.Owner);
RaiseLocalEvent(station, new StationGridAddedEvent(gridComponent.Owner, false));
RaiseLocalEvent(station, new StationGridAddedEvent(gridComponent.Owner, false), true);
_sawmill.Info($"Adding grid {mapGrid}:{gridComponent.Owner} to station {Name(station)} ({station})");
}
@@ -247,7 +247,7 @@ public sealed class StationSystem : EntitySystem
RemComp<StationMemberComponent>(mapGrid);
stationData.Grids.Remove(gridComponent.Owner);
RaiseLocalEvent(station, new StationGridRemovedEvent(gridComponent.Owner));
RaiseLocalEvent(station, new StationGridRemovedEvent(gridComponent.Owner), true);
_sawmill.Info($"Removing grid {mapGrid}:{gridComponent.Owner} from station {Name(station)} ({station})");
}
@@ -273,7 +273,7 @@ public sealed class StationSystem : EntitySystem
_chatSystem.DispatchStationAnnouncement(station, $"The station {oldName} has been renamed to {name}.");
}
RaiseLocalEvent(station, new StationRenamedEvent(oldName, name));
RaiseLocalEvent(station, new StationRenamedEvent(oldName, name), true);
}
/// <summary>