예제 #1
0
        public static List <Vector2> CreateFrame(Vector2 size, ushort data = 0, Side side = Side.Long)
        {
            side = side switch {
                Side.TopAndBottom => Side.TopAndBottom,
                Side.LeftAndRight => Side.LeftAndRight,
                Side.Short when size.Y > size.X => Side.TopAndBottom,
                Side.Short => Side.LeftAndRight,
                Side.Long when size.Y > size.X => Side.LeftAndRight,
                _ => Side.TopAndBottom
            };

            var gridSize = size.Apply(MathF.Min) / (8 + 9 * 3 + 2);

            return(CreateMarker(gridSize, size, data).ToList());
        }