Beispiel #1
0
        void DrawMapCursor()
        {
            if (ShowPossibleBuilds)
            {
                DrawMapCursorPossibleBuild();
            }
            else
            {
                ClearMapCursorPossibleBuild();
            }

            var position = interf.GetMapCursorPosition();

            DrawMapCursorSprite(position, 0, interf.GetMapCursorSprite(0));

            var cycle = DirectionCycleCW.CreateDefault();

            foreach (var direction in cycle)
            {
                DrawMapCursorSprite(map.Move(position, direction), 1 + (int)direction, interf.GetMapCursorSprite(1 + (int)direction));
            }
        }