Exemplo n.º 1
0
 public void CopyTo(ref RifleKickbackModifierArg arg)
 {
     arg.BasicWidth     = BasicWidth;
     arg.ContinusWidth  = ContinusWidth;
     arg.MaxWidth       = MaxWidth;
     arg.BasicHeight    = BasicHeight;
     arg.ContinusHeight = ContinusHeight;
     arg.MaxHeight      = MaxHeight;
     arg.Turnback       = Turnback;
 }
Exemplo n.º 2
0
        private void ApplyAttachment(RifleKickbackLogic logic)
        {
            var arg = new RifleKickbackModifierArg()
            {
                BasicWidth     = _attachAttributeDic[WeaponAttributeType.HBaseKickback],
                MaxWidth       = _attachAttributeDic[WeaponAttributeType.HMaxKickback],
                ContinusWidth  = _attachAttributeDic[WeaponAttributeType.HCKickback],
                BasicHeight    = _attachAttributeDic[WeaponAttributeType.VBaseKickback],
                MaxHeight      = _attachAttributeDic[WeaponAttributeType.VMaxKickback],
                ContinusHeight = _attachAttributeDic[WeaponAttributeType.VCKickback],
                Turnback       = _attachAttributeDic[WeaponAttributeType.Turnback],
            };

            logic.ApplyModifier(arg);
        }