新人商城活动
parent
e54a1c6243
commit
87f073bb89
|
@ -108,7 +108,7 @@ public interface ActivityType {
|
|||
int SPECIAL_MONSTER_RANDOM_ACTIVITY = 100;//灵兽宝阁活动
|
||||
int SPECIAL_MONSTER_GIFT_ACTIVITY = 101;//灵兽礼包
|
||||
|
||||
|
||||
int NEW_PLAYER_SHOP = 91; // 新人商城
|
||||
|
||||
int NEW_GENERAL_ATTACK = 200;//新将来袭
|
||||
int HERO_STAR = 500;
|
||||
|
|
|
@ -96,7 +96,7 @@ public enum ActivityTypeEnum {
|
|||
ARENA_RANK_EXPERIMENT(ActivityType.ARENA_RANK_EXPERIMENT,ArenaRankActivity::new),//竞技试炼
|
||||
DAILY_PREFERENTIAL_GIFT(ActivityType.DAILY_PREFERENTIAL_GIFT,DailyPreferentialGiftActivity::new),
|
||||
SUMMON_TREASURE(ActivityType.SUMMON_TREASURE,SummonTreasureActivity::new),//招募秘宝
|
||||
|
||||
NEW_PLAYER_SHOP(ActivityType.NEW_PLAYER_SHOP, NewPlayerShopActivity::new)
|
||||
;
|
||||
|
||||
private int type;
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
package com.ljsd.jieling.logic.activity;
|
||||
|
||||
import com.ljsd.jieling.logic.activity.event.GoldRefreshEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.IEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
|
||||
class NewPlayerShopActivity extends AbstractActivity {
|
||||
|
||||
public NewPlayerShopActivity(int id) {
|
||||
super(id);
|
||||
// Poster.getPoster().listenEvent(this, UserOnlineEvent.class);
|
||||
Poster.getPoster().listenEvent(this, GoldRefreshEvent.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initActivity(User user) throws Exception {
|
||||
|
||||
// notifyClient(user, ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEvent(IEvent event) throws Exception {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue