From 829b9df78e0b0d43c5390eea95c30059089d00f0 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 18 Nov 2020 12:08:45 -0500 Subject: [PATCH] lint fixes for TreeScene. --- Shared/TreeScene.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Shared/TreeScene.cs b/Shared/TreeScene.cs index 9260507..c045746 100644 --- a/Shared/TreeScene.cs +++ b/Shared/TreeScene.cs @@ -23,7 +23,8 @@ namespace SemiColinGames { World = Matrix.CreateTranslation(0, 0, 0), View = Matrix.CreateLookAt(Vector3.Backward, Vector3.Zero, Vector3.Up), VertexColorEnabled = true, - Projection = Matrix.CreateOrthographicOffCenter(-1920 / 2, 1920 / 2, -1080 / 4, 1080 * 3 / 4, -1, 1) + Projection = Matrix.CreateOrthographicOffCenter( + -1920 / 2, 1920 / 2, -1080 / 4, 1080 * 3 / 4, -1, 1) }; vertices = new VertexPositionColor[MAX_VERTICES]; @@ -76,19 +77,24 @@ namespace SemiColinGames { this(orientation, length, inWidth, outWidth, new List()) { } - public TreeNode(float orientation, float length, float inWidth, float outWidth, TreeNode child) : + public TreeNode(float orientation, float length, float inWidth, float outWidth, + TreeNode child) : this(orientation, length, inWidth, outWidth, new List() { child }) { } - public TreeNode(float orientation, float length, float inWidth, float outWidth, TreeNode child1, TreeNode child2) : + public TreeNode(float orientation, float length, float inWidth, float outWidth, + TreeNode child1, TreeNode child2) : this(orientation, length, inWidth, outWidth, new List() { child1, child2 }) { } - public TreeNode(float orientation, float length, float inWidth, float outWidth, TreeNode child1, TreeNode child2, TreeNode child3) : - this(orientation, length, inWidth, outWidth, new List() { child1, child2, child3 }) { + public TreeNode(float orientation, float length, float inWidth, float outWidth, + TreeNode child1, TreeNode child2, TreeNode child3) : + this(orientation, length, inWidth, outWidth, + new List() { child1, child2, child3 }) { } - public TreeNode(float orientation, float length, float inWidth, float outWidth, List children) { + public TreeNode(float orientation, float length, float inWidth, float outWidth, + List children) { Orientation = orientation; WorldOrientation = orientation; Length = length;