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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
public static Trough GetDefault(Table.Table table) { var primitiveData = new TroughData(table.GetNewName <Trough>("Trough")); return(new Trough(primitiveData)); }
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)); }
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)); }
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)); }
public static Light GetDefault(Table.Table table) => GetDefault(table.GetNewName <Light>("Light"), table.Width / 2f, table.Height / 2f);
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)); }