Skip to content

Instantly share code, notes, and snippets.

@zoalasaurusrawr
Created January 16, 2014 04:08
Show Gist options
  • Select an option

  • Save zoalasaurusrawr/8449640 to your computer and use it in GitHub Desktop.

Select an option

Save zoalasaurusrawr/8449640 to your computer and use it in GitHub Desktop.
SpatialPartitionCell.cs
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