| | |
| | |
|
| | | private void OperationEndEvent(Operation type, int state)
|
| | | {
|
| | | if (type == Operation.FlashSale && state == 0)
|
| | | if ((type == Operation.FlashSale || type == Operation.BossReborn
|
| | | || type == Operation.ConsumeRebate || type == Operation.GiftPackage
|
| | | || type == Operation.MultipRealmPoint)
|
| | | && state == 0)
|
| | | {
|
| | | if (openServerActivityStateChange != null)
|
| | | {
|
| | | openServerActivityStateChange();
|
| | | }
|
| | | }
|
| | | if ((type == Operation.MultipleExp)
|
| | | && state == 1)
|
| | | {
|
| | | if (openServerActivityStateChange != null)
|
| | | {
|
| | |
| | |
|
| | | private void OperationStartEvent(Operation type, int state)
|
| | | {
|
| | | if (type == Operation.FlashSale && state == 0)
|
| | | if ((type == Operation.FlashSale || type == Operation.BossReborn
|
| | | || type == Operation.ConsumeRebate || type == Operation.GiftPackage
|
| | | || type == Operation.MultipRealmPoint)
|
| | | && state == 0)
|
| | | {
|
| | | if (openServerActivityStateChange != null)
|
| | | {
|
| | | openServerActivityStateChange();
|
| | | }
|
| | | }
|
| | | if ((type == Operation.MultipleExp)
|
| | | && state == 1)
|
| | | {
|
| | | if (openServerActivityStateChange != null)
|
| | | {
|
| | |
| | | public bool IsFlashSaleOpen()
|
| | | {
|
| | | return flashSaleModel.IsOpen;
|
| | | }
|
| | |
|
| | | public bool IsFlashSaleTitle()
|
| | | {
|
| | | if (IsImpactRankOpen() || IsRedEnvelopeOpen() || IsTimeLimitGiftOpen())
|
| | | {
|
| | | return false;
|
| | | }
|
| | | if (IsFlashSaleOpen())
|
| | | {
|
| | | return true;
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool IsConsumeRebateOpen()
|