From 40a2621aa2bcea3e71f79a6934552fb2ae9df259 Mon Sep 17 00:00:00 2001 From: Andreas Torebring Date: Sun, 20 Nov 2022 17:00:01 +0100 Subject: [PATCH] Add comments for public fields and properties --- .../QuadTree/QuadTree.cs | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/cs/MonoGame.Extended.Collisions/QuadTree/QuadTree.cs b/src/cs/MonoGame.Extended.Collisions/QuadTree/QuadTree.cs index bbb46990..1bf7bdab 100644 --- a/src/cs/MonoGame.Extended.Collisions/QuadTree/QuadTree.cs +++ b/src/cs/MonoGame.Extended.Collisions/QuadTree/QuadTree.cs @@ -8,10 +8,24 @@ namespace MonoGame.Extended.Collisions /// public class Quadtree { + /// + /// The default maximum depth. + /// public const int DefaultMaxDepth = 7; + + /// + /// The default maximum objects per node. + /// public const int DefaultMaxObjectsPerNode = 25; + /// + /// Contains the children of this node. + /// protected List Children = new List(); + + /// + /// Contains the data for this node in the quadtree. + /// protected HashSet Contents = new HashSet(); /// @@ -24,9 +38,17 @@ namespace MonoGame.Extended.Collisions NodeBounds = bounds; } + /// + /// Gets or sets the current depth for this node in the quadtree. + /// protected int CurrentDepth { get; set; } + /// + /// Gets or sets the maximum depth of the quadtree. + /// protected int MaxDepth { get; set; } = DefaultMaxDepth; - + /// + /// Gets or sets the maximum objects per node in this quadtree. + /// protected int MaxObjectsPerNode { get; set; } = DefaultMaxObjectsPerNode; ///