* #1462 extracted MapGrid's HasGravity property to separate Content component * #1462 - PR suggestions * Merge to master Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
20 lines
467 B
C#
20 lines
467 B
C#
#nullable enable
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Map;
|
|
|
|
namespace Content.Shared.Gravity
|
|
{
|
|
public class GravityChangedMessage : EntityEventArgs
|
|
{
|
|
public GravityChangedMessage(GridId changedGridIndex, bool newGravityState)
|
|
{
|
|
HasGravity = newGravityState;
|
|
ChangedGridIndex = changedGridIndex;
|
|
}
|
|
|
|
public GridId ChangedGridIndex { get; }
|
|
|
|
public bool HasGravity { get; }
|
|
}
|
|
}
|