示例#1
0
        public override void Start(GamePlayer player)
        {
            GPMultipleBuffer gPMultipleBuffer = player.BufferList.GetOfType(typeof(GPMultipleBuffer)) as GPMultipleBuffer;

            if (gPMultipleBuffer != null)
            {
                gPMultipleBuffer.Info.ValidDate += base.Info.ValidDate;
                player.BufferList.UpdateBuffer(gPMultipleBuffer);
                return;
            }
            base.Start(player);
            player.GPAddPlus *= (double)base.Info.Value;
        }
示例#2
0
        public override void Start(GamePlayer player)
        {
            GPMultipleBuffer buffer = player.BufferList.GetOfType(typeof(GPMultipleBuffer)) as GPMultipleBuffer;

            if (buffer != null)
            {
                buffer.Info.ValidDate += Info.ValidDate;
                player.BufferList.UpdateBuffer(buffer);
            }
            else
            {
                base.Start(player);
                player.GPAddPlus *= Info.Value;
            }
        }
示例#3
0
 public static AbstractBuffer CreateBuffer(BufferInfo info)
 {
     AbstractBuffer buffer = null;
     switch (info.Type)
     {
         case 11:
             buffer = new KickProtectBuffer(info);
             break;
         case 12:
             buffer = new OfferMultipleBuffer(info);
             break;
         case 13:
             buffer = new GPMultipleBuffer(info);
             break;
         case 15:
             buffer = new PropsBuffer(info);
             break;
     }
     return buffer;
 }
示例#4
0
        public static AbstractBuffer CreateBuffer(BufferInfo info)
        {
            AbstractBuffer result = null;

            switch (info.Type)
            {
            case 11:
                result = new KickProtectBuffer(info);
                break;

            case 12:
                result = new OfferMultipleBuffer(info);
                break;

            case 13:
                result = new GPMultipleBuffer(info);
                break;

            case 15:
                result = new PropsBuffer(info);
                break;
            }
            return(result);
        }