From f9db7f18e4d5897e789bbf16bc762e2621ca567f Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Tue, 21 Jul 2020 18:28:40 -0700 Subject: [PATCH] add in keyword to Spawn --- content/pong/ball/bouncing/boundaries.md | 2 +- content/pong/ball/moving.md | 2 +- content/pong/ball/revisiting_spawners.md | 6 +++--- content/pong/ball/spawning.md | 4 ++-- content/pong/polish/win_condition.md | 2 +- content/pong/scoring/drawing_score.md | 2 +- content/pong/scoring/goal_collision.md | 2 +- content/pong/scoring/tracking_score.md | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/pong/ball/bouncing/boundaries.md b/content/pong/ball/bouncing/boundaries.md index 2f7ffcc..6c2a40a 100644 --- a/content/pong/ball/bouncing/boundaries.md +++ b/content/pong/ball/bouncing/boundaries.md @@ -41,7 +41,7 @@ namespace PongFE.Spawners { public class BoundarySpawner : Spawner { - protected override void Spawn(BoundarySpawnMessage message) + protected override void Spawn(in BoundarySpawnMessage message) { var entity = CreateEntity(); diff --git a/content/pong/ball/moving.md b/content/pong/ball/moving.md index f67adc6..5653e0b 100644 --- a/content/pong/ball/moving.md +++ b/content/pong/ball/moving.md @@ -127,7 +127,7 @@ namespace PongFE.Spawners BallTexture = ballTexture; } - protected override void Spawn(BallSpawnMessage message) + protected override void Spawn(in BallSpawnMessage message) { var ball = CreateEntity(); AddComponent(ball, new PositionComponent(message.Position)); diff --git a/content/pong/ball/revisiting_spawners.md b/content/pong/ball/revisiting_spawners.md index 427446c..0b43b5d 100644 --- a/content/pong/ball/revisiting_spawners.md +++ b/content/pong/ball/revisiting_spawners.md @@ -169,7 +169,7 @@ namespace PongFE.Spawners PaddleTexture = paddleTexture; } - protected override void Spawn(PaddleSpawnMessage message) + protected override void Spawn(in PaddleSpawnMessage message) { var paddle = CreateEntity(); AddComponent(paddle, new Texture2DComponent(PaddleTexture, 0)); @@ -245,7 +245,7 @@ namespace PongFE.Spawners WhitePixel = whitePixel; } - protected override void Spawn(PaddleSpawnMessage message) + protected override void Spawn(in PaddleSpawnMessage message) { var paddle = CreateEntity(); AddComponent(paddle, new PlayerInputComponent(message.PlayerIndex)); @@ -324,7 +324,7 @@ namespace PongFE.Spawners WhitePixel = whitePixel; } - protected override void Spawn(BallSpawnMessage message) + protected override void Spawn(in BallSpawnMessage message) { var ball = CreateEntity(); AddComponent(ball, new PositionComponent(message.Position)); diff --git a/content/pong/ball/spawning.md b/content/pong/ball/spawning.md index dd8585e..e7d80fb 100644 --- a/content/pong/ball/spawning.md +++ b/content/pong/ball/spawning.md @@ -75,7 +75,7 @@ namespace PongFE.Spawners BallTexture = ballTexture; } - protected override void Spawn(BallSpawnMessage message) + protected override void Spawn(in BallSpawnMessage message) { var ball = CreateEntity(); SetComponent(ball, new PositionComponent(new MoonTools.Structs.Position2D(640, 360))); @@ -136,7 +136,7 @@ namespace PongFE.Spawners BallTexture = ballTexture; } - protected override void Spawn(BallSpawnMessage message) + protected override void Spawn(in BallSpawnMessage message) { var ball = CreateEntity(); AddComponent(ball, new PositionComponent(new MoonTools.Structs.Position2D(640, 360))); diff --git a/content/pong/polish/win_condition.md b/content/pong/polish/win_condition.md index fa4879d..66cadc1 100644 --- a/content/pong/polish/win_condition.md +++ b/content/pong/polish/win_condition.md @@ -68,7 +68,7 @@ namespace PongFE.Spawners { public class UITextSpawner : Spawner { - protected override void Spawn(UITextSpawnMessage message) + protected override void Spawn(in UITextSpawnMessage message) { var entity = CreateEntity(); diff --git a/content/pong/scoring/drawing_score.md b/content/pong/scoring/drawing_score.md index 4ddd7a2..2e3111f 100644 --- a/content/pong/scoring/drawing_score.md +++ b/content/pong/scoring/drawing_score.md @@ -83,7 +83,7 @@ namespace PongFE.Spawners { public class GoalBoundarySpawner : Spawner { - protected override void Spawn(GoalBoundarySpawnMessage message) + protected override void Spawn(in GoalBoundarySpawnMessage message) { var entity = CreateEntity(); diff --git a/content/pong/scoring/goal_collision.md b/content/pong/scoring/goal_collision.md index 8867e4e..33eb6d5 100644 --- a/content/pong/scoring/goal_collision.md +++ b/content/pong/scoring/goal_collision.md @@ -172,7 +172,7 @@ namespace PongFE.Spawners { public class GoalBoundarySpawner : Spawner { - protected override void Spawn(GoalBoundarySpawnMessage message) + protected override void Spawn(in GoalBoundarySpawnMessage message) { var entity = CreateEntity(); diff --git a/content/pong/scoring/tracking_score.md b/content/pong/scoring/tracking_score.md index 4a5bcf2..7e31a3e 100644 --- a/content/pong/scoring/tracking_score.md +++ b/content/pong/scoring/tracking_score.md @@ -252,7 +252,7 @@ namespace PongFE.Spawners WhitePixel = whitePixel; } - protected override void Spawn(PaddleSpawnMessage message) + protected override void Spawn(in PaddleSpawnMessage message) { var paddle = CreateEntity(); if (message.PaddleControl == PaddleControl.Player)