private void addOrientationToAllObjectsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Common.WindowsForms.PromptDialog d = new Common.WindowsForms.PromptDialog();
     float val;
     if(d.ShowDialog() == DialogResult.Cancel || !float.TryParse(d.Value, out val)) return;
     foreach (var v in worldView.Scene.AllEntities)
         if (v is Client.Game.Map.GameEntity)
             ((Client.Game.Map.GameEntity)v).Orientation += val;
 }
Esempio n. 2
0
        private void addOrientationToAllObjectsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Common.WindowsForms.PromptDialog d = new Common.WindowsForms.PromptDialog();
            float val;

            if (d.ShowDialog() == DialogResult.Cancel || !float.TryParse(d.Value, out val))
            {
                return;
            }
            foreach (var v in worldView.Scene.AllEntities)
            {
                if (v is Client.Game.Map.GameEntity)
                {
                    ((Client.Game.Map.GameEntity)v).Orientation += val;
                }
            }
        }