山河社稷图排行榜
parent
6677d92b45
commit
b72978b56e
|
@ -105,7 +105,7 @@ public class RedisKey {
|
|||
public static final String CHALLENGE_MONSTER_ATTACK = "CHALLENGE_MONSTER_ATTACK";
|
||||
public static final String CHALLENGE_EXPEDITION_INFO = "CHALLENGE_EXPEDITION_INFO";
|
||||
|
||||
|
||||
public static final String HARD_STAGE_BATTLE = "HARD_STAGE_BATTLE";
|
||||
|
||||
public static final String ARENA_RRECORD = "ARENA_RRECORD";
|
||||
|
||||
|
@ -245,6 +245,10 @@ public class RedisKey {
|
|||
public static final String GUILD_SHEJI_SOCRE_USER_RANK = "GUILD_SHEJI_SOCRE_USER_RANK";
|
||||
public static final String GUILD_SHEJI_SCORE_RANK = "GUILD_SHEJI_SCORE_RANK";
|
||||
|
||||
//山河社稷图
|
||||
public static final String SHAN_HE_SHE_JI_CHAPTER_RANK = "SHAN_HE_SHE_JI_CHAPTER_RANK";
|
||||
public static final String SHAN_HE_SHE_JI_STAR_RANK = "SHAN_HE_SHE_JI_STAR_RANK";
|
||||
|
||||
|
||||
public static final String DEATH_PATH_TOTAL_CHALLENGE_COUNT = "DEATH_PATH_TOTAL_CHALLENGE_COUNT";
|
||||
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
package com.ljsd.jieling.logic.activity.event;
|
||||
|
||||
public class ShanHeSheJiTuStarEvent implements IEvent{
|
||||
private int uid;
|
||||
private int type;//1:更新章节 2:更新星数
|
||||
private int num;
|
||||
|
||||
public int getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
public void setUid(int uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(int num) {
|
||||
this.num = num;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.ljsd.jieling.logic.activity.eventhandler;
|
||||
|
||||
import com.ljsd.jieling.logic.activity.IEventHandler;
|
||||
import com.ljsd.jieling.logic.activity.event.ShanHeSheJiTuStarEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.IEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
|
||||
public class ShanHeSheJiTuEventHandler implements IEventHandler {
|
||||
|
||||
public ShanHeSheJiTuEventHandler() {
|
||||
Poster.getPoster().listenEvent(this, ShanHeSheJiTuStarEvent.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEvent(IEvent event) throws Exception {
|
||||
|
||||
}
|
||||
}
|
|
@ -41,6 +41,9 @@ public enum RankEnum {
|
|||
|
||||
GUILD_SHEJI_SCORE_RANK(27,RedisKey.GUILD_SHEJI_SCORE_RANK,GuildSheJiScoreRank::new,false),//param1:公会社稷贡献 param2:无 param3:无
|
||||
WARLD_DIS_ARENA_RANK(28,RedisKey.WARLD_DIS_ARENA_RANK,ArenaRank::new,true),//世界服排行
|
||||
SHAN_HE_SHE_JI_CHAPTER_RANK(29,RedisKey.SHAN_HE_SHE_JI_CHAPTER_RANK,ShanHeSheJiTuChapterRank::new,false),
|
||||
SHAN_HE_SHE_JI_STAR_RANK(30,RedisKey.SHAN_HE_SHE_JI_STAR_RANK,ShanHeSheJiTuStarRank::new,false),
|
||||
|
||||
;
|
||||
|
||||
private int type;
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.ljsd.jieling.logic.rank.rankImpl;
|
||||
|
||||
public class ShanHeSheJiTuChapterRank extends AbstractRank{
|
||||
|
||||
public ShanHeSheJiTuChapterRank(int type, String redisKey) {
|
||||
super(type, redisKey);
|
||||
}
|
||||
@Override
|
||||
public long[] getDataByScore(Double score) {
|
||||
return new long[]{score.longValue()};
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getScore(double... data) {
|
||||
return data[0];
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.ljsd.jieling.logic.rank.rankImpl;
|
||||
|
||||
public class ShanHeSheJiTuStarRank extends AbstractRank{
|
||||
|
||||
public ShanHeSheJiTuStarRank(int type, String redisKey) {
|
||||
super(type, redisKey);
|
||||
}
|
||||
@Override
|
||||
public long[] getDataByScore(Double score) {
|
||||
return new long[]{score.longValue()};
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getScore(double... data) {
|
||||
return data[0];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue