Skip to content

Commit 5b782a6

Browse files
committed
Fix reactor direction
1 parent 320fdd3 commit 5b782a6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/common/Edelstein.Common.Gameplay.Game/FieldManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ await template.Footholds.Retrieve(life.Foothold),
7272
if (reactorTemplate == null) continue;
7373
var reactorObj = new FieldReactor(
7474
reactorTemplate,
75-
reactor.Position
75+
reactor.Position,
76+
reactor.Flip
7677
);
7778

7879
await field.Enter(reactorObj);

src/common/Edelstein.Common.Gameplay.Game/Templates/FieldTemplateReactor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public record FieldTemplateReactor : IFieldTemplateReactor
1313

1414
public int ReactorTime { get; }
1515

16-
public bool IsFacingLeft { get; }
16+
public bool Flip { get; }
1717
public IPoint2D Position { get; }
1818

1919
public FieldTemplateReactor(IDataNode node)
@@ -22,7 +22,7 @@ public FieldTemplateReactor(IDataNode node)
2222

2323
ReactorTime = node.ResolveInt("reactorTime") ?? 0;
2424

25-
IsFacingLeft = !(node.ResolveBool("f") ?? false);
25+
Flip = node.ResolveBool("f") ?? false;
2626

2727
Position = new Point2D(
2828
node.ResolveInt("x") ?? int.MinValue,

src/protocol/Edelstein.Protocol.Gameplay.Game/Templates/IFieldTemplateReactor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ public interface IFieldTemplateReactor
99

1010
int ReactorTime { get; }
1111

12-
bool IsFacingLeft { get; }
12+
bool Flip { get; }
1313
IPoint2D Position { get; }
1414
}

0 commit comments

Comments
 (0)