Ejemplo n.º 1
0
            void MouseMoveHandler(Object sender, MouseEventArgs e)
            {
                Int32 boxX = e.X / house.tileSize;
                Int32 boxY = e.Y / house.tileSize;

                if (boxX < 0 || boxX > size || boxY < 0 || boxY > size)
                {
                    return;
                }

                Int32 houseObjectOffset = (31 - (y + boxY)) * 32 + (x + boxX);

                house.MouseOverHouseObject(houseObjectOffset);
            }