diff --git a/src/common/Edelstein.Common.Gameplay.Game/FieldManager.cs b/src/common/Edelstein.Common.Gameplay.Game/FieldManager.cs index 872b7cda8..0ed60cb30 100644 --- a/src/common/Edelstein.Common.Gameplay.Game/FieldManager.cs +++ b/src/common/Edelstein.Common.Gameplay.Game/FieldManager.cs @@ -72,7 +72,8 @@ await template.Footholds.Retrieve(life.Foothold), if (reactorTemplate == null) continue; var reactorObj = new FieldReactor( reactorTemplate, - reactor.Position + reactor.Position, + reactor.Flip ); await field.Enter(reactorObj); diff --git a/src/common/Edelstein.Common.Gameplay.Game/Templates/FieldTemplateReactor.cs b/src/common/Edelstein.Common.Gameplay.Game/Templates/FieldTemplateReactor.cs index 2ea8607e6..846d4f041 100644 --- a/src/common/Edelstein.Common.Gameplay.Game/Templates/FieldTemplateReactor.cs +++ b/src/common/Edelstein.Common.Gameplay.Game/Templates/FieldTemplateReactor.cs @@ -13,7 +13,7 @@ public record FieldTemplateReactor : IFieldTemplateReactor public int ReactorTime { get; } - public bool IsFacingLeft { get; } + public bool Flip { get; } public IPoint2D Position { get; } public FieldTemplateReactor(IDataNode node) @@ -22,7 +22,7 @@ public FieldTemplateReactor(IDataNode node) ReactorTime = node.ResolveInt("reactorTime") ?? 0; - IsFacingLeft = !(node.ResolveBool("f") ?? false); + Flip = node.ResolveBool("f") ?? false; Position = new Point2D( node.ResolveInt("x") ?? int.MinValue, diff --git a/src/protocol/Edelstein.Protocol.Gameplay.Game/Templates/IFieldTemplateReactor.cs b/src/protocol/Edelstein.Protocol.Gameplay.Game/Templates/IFieldTemplateReactor.cs index 294de868a..2f6cbf3e4 100644 --- a/src/protocol/Edelstein.Protocol.Gameplay.Game/Templates/IFieldTemplateReactor.cs +++ b/src/protocol/Edelstein.Protocol.Gameplay.Game/Templates/IFieldTemplateReactor.cs @@ -9,6 +9,6 @@ public interface IFieldTemplateReactor int ReactorTime { get; } - bool IsFacingLeft { get; } + bool Flip { get; } IPoint2D Position { get; } }