Ejemplo n.º 1
0
        public Collidable(Bounds2d bounds)
        {
            _disposed = 0;

            Bounds = bounds;
            ID = Interlocked.Increment(ref _collidableIDs);

            // Set a default collision event so we don't have to check if its null
            OnCollision = obj => { };
            OnDisposed = obj => { };
        }
Ejemplo n.º 2
0
 public override bool Intersects(Bounds2d obj)
 {
     return obj.Intersects(this);
 }
Ejemplo n.º 3
0
 public abstract bool Intersects(Bounds2d obj);