Skip to content

Commit

Permalink
fix: 调整适配新架构
Browse files Browse the repository at this point in the history
  • Loading branch information
T13MAX committed Oct 31, 2024
1 parent 73ab021 commit c51fb64
Show file tree
Hide file tree
Showing 46 changed files with 145 additions and 728 deletions.
10 changes: 10 additions & 0 deletions common-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
<artifactId>common-game</artifactId>
<version>${common-game.version}</version>
</dependency>
<dependency>
<groupId>com.t13max.data.mongo</groupId>
<artifactId>t13max-data-mongo</artifactId>
<version>${t13max-data-mongo.version}</version>
</dependency>
<dependency>
<groupId>com.t13max.data.redis</groupId>
<artifactId>t13max-data-redis</artifactId>
<version>${t13max-data-redis.version}</version>
</dependency>

<dependency>
<groupId>org.xerial</groupId>
Expand Down

This file was deleted.

8 changes: 0 additions & 8 deletions common-data/src/main/java/com/t13max/data/dao/IRedisUtil.java

This file was deleted.

16 changes: 0 additions & 16 deletions common-data/src/main/java/com/t13max/data/dao/MemoryRedisUtil.java

This file was deleted.

40 changes: 0 additions & 40 deletions common-data/src/main/java/com/t13max/data/dao/MongoUtil.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.t13max.data.dao;

import com.t13max.common.config.BaseConfig;
import com.t13max.common.run.Application;
import com.t13max.data.entity.AccountData;
import com.t13max.game.config.BaseConfig;
import com.t13max.game.exception.DataException;
import com.t13max.game.run.Application;
import com.t13max.game.util.Log;
import com.t13max.util.TextUtil;
import lombok.experimental.UtilityClass;
Expand All @@ -18,7 +18,6 @@
* @since: 11:10 2024/5/29
*/
@UtilityClass
@Deprecated
public class SqlLiteUtil {

//暂时就单链接 后续补充优化
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.t13max.data.entity;

import com.t13max.data.mongo.IData;
import lombok.Data;

/**
Expand Down
10 changes: 0 additions & 10 deletions common-data/src/main/java/com/t13max/data/entity/IData.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.t13max.data.entity;

import com.t13max.data.mongo.IData;
import lombok.Data;

import java.util.HashMap;
Expand Down Expand Up @@ -33,6 +34,7 @@ public ItemData(long uuid) {
* @Author t13max
* @Date 19:24 2024/6/4
*/
@Override
public long getId() {
return uuid;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
package com.t13max.data.entity;

import com.t13max.data.mongo.IData;
import lombok.Data;

/**
* 排行榜dump数据
*
* @author t13max
* @since 17:39 2024/9/4
*/
public class RankDumpData {
@Data
public class RankDumpData implements IData {

private long id;

private String rankKey;

private byte[] scoredSet;

private byte[] mapperMap;

private byte[] rankData;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.t13max.data.entity;

import com.t13max.data.mongo.IData;
import lombok.Data;

/**
* @author: t13max
* @since: 11:05 2024/5/24
*/
@Data
public class RoleData implements IData{
public class RoleData implements IData {

//所属玩家的唯一id
private long uuid;
Expand Down

This file was deleted.

46 changes: 0 additions & 46 deletions common-data/src/main/java/com/t13max/data/util/UuidUtil.java

This file was deleted.

6 changes: 5 additions & 1 deletion common-game/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
<artifactId>t13max-core</artifactId>
<version>${t13max-core.version}</version>
</dependency>

<dependency>
<groupId>com.t13max.common.rpc</groupId>
<artifactId>t13max-rpc</artifactId>
<version>${t13max-rpc.version}</version>
</dependency>
</dependencies>

</project>
11 changes: 11 additions & 0 deletions common-game/src/main/java/com/t13max/game/api/IRankService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.t13max.game.api;

import com.t13max.rpc.anno.RpcInterface;

/**
* @author t13max
* @since 14:24 2024/10/31
*/
@RpcInterface
public interface IRankService {
}
21 changes: 0 additions & 21 deletions common-game/src/main/java/com/t13max/game/config/ActionConfig.java

This file was deleted.

Loading

0 comments on commit c51fb64

Please sign in to comment.