예제 #1
0
        public static HitTarget GetDropTarget(Table.Table table)
        {
            var hitTargetData = new HitTargetData(table.GetNewName <HitTarget>("DropTarget"), table.Width / 2f, table.Height / 2f)
            {
                TargetType = TargetType.DropTargetBeveled
            };

            return(new HitTarget(hitTargetData));
        }
예제 #2
0
        public static HitTarget GetHitTarget(Table.Table table)
        {
            var hitTargetData = new HitTargetData(table.GetNewName <HitTarget>("HitTarget"), table.Width / 2f, table.Height / 2f)
            {
                TargetType = TargetType.HitFatTargetRectangle
            };

            return(new HitTarget(hitTargetData));
        }
예제 #3
0
        public static Plunger GetDefault(Table.Table table)
        {
            var plungerData = new PlungerData(table.GetNewName <Plunger>("Plunger"), table.Width / 2f, table.Height / 2f)
            {
                Type = PlungerType.PlungerTypeCustom
            };

            return(new Plunger(plungerData));
        }
예제 #4
0
        public static Surface GetDefault(Table.Table table)
        {
            var surfaceData = new SurfaceData(
                table.GetNewName <Surface>("Wall"),
                new[] {
                new DragPointData(table.Width / 2f - 50f, table.Height / 2f - 50f),
                new DragPointData(table.Width / 2f - 50f, table.Height / 2f + 50f),
                new DragPointData(table.Width / 2f + 50f, table.Height / 2f + 50f),
                new DragPointData(table.Width / 2f + 50f, table.Height / 2f - 50f)
            }
                );

            return(new Surface(surfaceData));
        }
예제 #5
0
        public static Trigger GetDefault(Table.Table table)
        {
            var triggerData = new TriggerData(table.GetNewName <Trigger>("Trigger"), table.Width / 2f, table.Height / 2f)
            {
                DragPoints = new[] {
                    new DragPointData(table.Width / 2f - 50f, table.Height / 2f - 50f),
                    new DragPointData(table.Width / 2f - 50f, table.Height / 2f + 50f),
                    new DragPointData(table.Width / 2f + 50f, table.Height / 2f + 50f),
                    new DragPointData(table.Width / 2f + 50f, table.Height / 2f - 50f)
                }
            };

            return(new Trigger(triggerData));
        }
예제 #6
0
        public static Light GetDefault(Table.Table table)
        {
            var x         = table.Width / 2f;
            var y         = table.Height / 2f;
            var lightData = new LightData(table.GetNewName <Light>("Light"), table.Width / 2f, table.Height / 2f)
            {
                DragPoints = new[] {
                    new DragPointData(x, y - 50f)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f * MathF.Cos(MathF.PI / 4), y - 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f, y)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f * MathF.Cos(MathF.PI / 4), y + 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x, y + 50f)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f * MathF.Cos(MathF.PI / 4), y + 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f, y)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f * MathF.Cos(MathF.PI / 4), y - 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                }
            };

            return(new Light(lightData));
        }
예제 #7
0
        public static Rubber GetDefault(Table.Table table)
        {
            var x          = table.Width / 2f;
            var y          = table.Height / 2f;
            var rubberData = new RubberData(table.GetNewName <Rubber>("Rubber"))
            {
                DragPoints = new[] {
                    new DragPointData(x, y - 50f)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f * MathF.Cos(MathF.PI / 4), y - 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f, y)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x - 50f * MathF.Cos(MathF.PI / 4), y + 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x, y + 50f)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f * MathF.Cos(MathF.PI / 4), y + 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f, y)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x + 50f * MathF.Cos(MathF.PI / 4), y - 50f * MathF.Sin(MathF.PI / 4))
                    {
                        IsSmooth = true
                    },
                }
            };

            return(new Rubber(rubberData));
        }
예제 #8
0
        public static MetalWireGuide GetDefault(Table.Table table)
        {
            var x = table.Width / 2f;
            var y = table.Height / 2f;
            var metalWireGuideData = new MetalWireGuideData(table.GetNewName <MetalWireGuide>("MetalWireGuide"))
            {
                DragPoints = new[] {
                    new DragPointData(x, y - 100f)
                    {
                        IsSmooth = true
                    },
                    new DragPointData(x, y)
                    {
                        IsSmooth = true
                    },
                }
            };

            return(new MetalWireGuide(metalWireGuideData));
        }
예제 #9
0
        public static Ramp GetDefault(Table.Table table)
        {
            var rampData = new RampData(table.GetNewName <Ramp>("Ramp"), new[] {
                new DragPointData(table.Width / 2f, table.Height / 2f + 200f)
                {
                    HasAutoTexture = false, IsSmooth = true
                },
                new DragPointData(table.Width / 2f, table.Height / 2f - 200f)
                {
                    HasAutoTexture = false, IsSmooth = true
                }
            })
            {
                HeightTop    = 50f,
                HeightBottom = 0f,
                WidthTop     = 60f,
                WidthBottom  = 75f
            };

            return(new Ramp(rampData));
        }
예제 #10
0
        public static Flipper GetDefault(Table.Table table)
        {
            var flipperData = new FlipperData(table.GetNewName <Flipper>("Flipper"), table.Width / 2f, table.Height / 2f);

            return(new Flipper(flipperData));
        }
예제 #11
0
        public static Bumper GetDefault(Table.Table table)
        {
            var bumperData = new BumperData(table.GetNewName <Bumper>("Bumper"), table.Width / 2f, table.Height / 2f);

            return(new Bumper(bumperData));
        }
예제 #12
0
        public static HitTarget GetDefault(Table.Table table)
        {
            var hitTargetData = new HitTargetData(table.GetNewName <HitTarget>("Target"), table.Width / 2f, table.Height / 2f);

            return(new HitTarget(hitTargetData));
        }
예제 #13
0
        public static Trough GetDefault(Table.Table table)
        {
            var primitiveData = new TroughData(table.GetNewName <Trough>("Trough"));

            return(new Trough(primitiveData));
        }
예제 #14
0
        public static Primitive GetDefault(Table.Table table)
        {
            var primitiveData = new PrimitiveData(table.GetNewName <Primitive>("Primitive"), table.Width / 2f, table.Height / 2f);

            return(new Primitive(primitiveData));
        }
예제 #15
0
        public static Spinner GetDefault(Table.Table table)
        {
            var spinnerData = new SpinnerData(table.GetNewName <Spinner>("Spinner"), table.Width / 2f, table.Height / 2f);

            return(new Spinner(spinnerData));
        }
예제 #16
0
        public static Gate GetDefault(Table.Table table)
        {
            var gateData = new GateData(table.GetNewName <Gate>("Gate"), table.Width / 2f, table.Height / 2f);

            return(new Gate(gateData));
        }
예제 #17
0
 public static Light GetDefault(Table.Table table) => GetDefault(table.GetNewName <Light>("Light"), table.Width / 2f, table.Height / 2f);
예제 #18
0
        public static Kicker GetDefault(Table.Table table)
        {
            var kickerData = new KickerData(table.GetNewName <Kicker>("Kicker"), table.Width / 2f, table.Height / 2f);

            return(new Kicker(kickerData));
        }