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; }
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; } }
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; }
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); }