Created
January 16, 2014 04:08
-
-
Save zoalasaurusrawr/8449640 to your computer and use it in GitHub Desktop.
SpatialPartitionCell.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Hammerwerx.Framework.Game; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace Hammerwerx.Framework.Runtime { | |
| public sealed class SpatialPartitionCell { | |
| public IList<GameObject> Objects; | |
| public int X { get; private set; } | |
| public int Y { get; private set; } | |
| public int Width { get; private set; } | |
| public int Height { get; private set; } | |
| public SpatialPartitionCell(int x, int y, int width, int height) { | |
| X = x; | |
| Y = y; | |
| Width = width; | |
| Height = height; | |
| Objects = new List<GameObject>(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment