Exemplo n.º 1
0
 static UserCmdInputConverter()
 {
     inputBlockGrps = new List <InputBlockGroup>();
     inputBlockGrps.Add(InputBlockGroup.Create(new[]
     {
         EPlayerInput.IsSprint,
         EPlayerInput.IsSlightWalk
     }));
     inputBlockGrps.Add(InputBlockGroup.Create(new[]
     {
         EPlayerInput.IsCrouch,
         EPlayerInput.IsProne,
         EPlayerInput.IsSwitchWeapon,
         EPlayerInput.IsReload,
         EPlayerInput.IsSwitchFireMode,
         EPlayerInput.IsLeftAttack,
         EPlayerInput.IsRightAttack,
     }));
     inputBlockGrps.Add(InputBlockGroup.Create(new[]
     {
         EPlayerInput.IsJump,
         EPlayerInput.IsSprint,
     }));
     inputBlockGrps.Add(InputBlockGroup.Create(new[]
     {
         EPlayerInput.ChangeCamera,
         EPlayerInput.IsCrouch,
         EPlayerInput.IsProne,
         EPlayerInput.IsSwitchWeapon,
         EPlayerInput.IsSprint,
     }));
 }
Exemplo n.º 2
0
        public static InputBlockGroup Create(EPlayerInput[] blockedInputs)
        {
            var instance = new InputBlockGroup(blockedInputs);

            return(instance);
        }