public EmitterShape(EmitterShapeType type, Vector2 size, Vector2 position, Vector2 offset) { this.type = type; this.size = size; this.position = position; this.offset = offset; this.maskPoints = null; }
public ShapeSelection() { InitializeComponent(); shapeType = EmitterShapeType.Point; shapeWidth = 100; shapeHeight = 100; for (int i = 0; i < Enum.GetValues(typeof(EmitterShapeType)).Length; i++) { comboBoxShapes.Items.Add(((EmitterShapeType)i).ToString()); } }
private void comboBoxShapes_SelectedIndexChanged(object sender, EventArgs e) { shapeType = (EmitterShapeType)comboBoxShapes.SelectedIndex; LoadProperties(); }
public EmitterShape(EmitterShapeType type) : this(type, new Vector2(100), Vector2.Zero, Vector2.Zero) { }