コード例 #1
0
 public void MouseClickUpRight(object Sender, GameWindow.MouseData Mouse)
 {
     foreach (var Player in Players)
     {
         if (Player.Value.LocalMouse == Mouse)
         {
             Player.Value.WannaMovement = false;
             break;
         }
     }
 }
コード例 #2
0
 public void MouseClickDownLeft(object Sender, GameWindow.MouseData Mouse)
 {
     foreach (var Player in Players)
     {
         if (Player.Value.LocalMouse == Mouse)
         {
             Player.Value.WannaShoot = true;
             break;
         }
     }
 }
コード例 #3
0
 public void MouseWheelDown(object Sender, GameWindow.MouseData Mouse)
 {
     foreach (var Player in Players)
     {
         if (Player.Value.LocalMouse == Mouse)
         {
             Worm PlayerWorm = Player.Value.ControlledWorm;
             PlayerWorm.WeaponIndex--;
             if (PlayerWorm.WeaponIndex < 0)
             {
                 PlayerWorm.WeaponIndex = PlayerWorm.CarriedWeapons.Count - 1;
             }
             PlayerWorm.CurrentWeapon = PlayerWorm.CarriedWeapons[PlayerWorm.WeaponIndex];
             Player.Value.CreateWeaponSwapTag(PlayerWorm.CurrentWeapon);
         }
     }
 }