Bläddra i källkod

:whale: 将模拟客户端相关的统一放在 one-client 模块下。

渔民小镇 1 år sedan
förälder
incheckning
412f2e97c0

+ 7 - 0
one-client/pom.xml

@@ -30,6 +30,13 @@
             <version>${project.parent.version}</version>
         </dependency>
 
+        <!-- 模拟客户端请求模块 https://www.yuque.com/iohao/game/tc83ud -->
+        <dependency>
+            <groupId>com.iohao.game</groupId>
+            <artifactId>light-client</artifactId>
+            <version>${ioGame.version}</version>
+        </dependency>
+
         <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
         <dependency>
             <groupId>org.slf4j</groupId>

+ 9 - 9
one-client/src/main/java/com/iohao/mmo/client/CommonClient.java

@@ -22,15 +22,15 @@ import com.iohao.game.external.client.InputCommandRegion;
 import com.iohao.game.external.client.join.ClientRunOne;
 import com.iohao.game.external.client.user.ClientUser;
 import com.iohao.game.external.client.user.DefaultClientUser;
-import com.iohao.mmo.bag.client.BagInputCommandRegion;
-import com.iohao.mmo.bag.client.ItemInputCommandRegion;
-import com.iohao.mmo.common.provide.client.CommonInputCommandRegion;
-import com.iohao.mmo.equip.client.EquipInputCommandRegion;
-import com.iohao.mmo.level.client.LevelInputCommandRegion;
-import com.iohao.mmo.login.client.LoginInputCommandRegion;
-import com.iohao.mmo.mail.client.MailInputCommandRegion;
-import com.iohao.mmo.map.client.MapInputCommandRegion;
-import com.iohao.mmo.person.client.PersonInputCommandRegion;
+import com.iohao.mmo.client.input.BagInputCommandRegion;
+import com.iohao.mmo.client.input.ItemInputCommandRegion;
+import com.iohao.mmo.client.input.CommonInputCommandRegion;
+import com.iohao.mmo.client.input.EquipInputCommandRegion;
+import com.iohao.mmo.client.input.LevelInputCommandRegion;
+import com.iohao.mmo.client.input.LoginInputCommandRegion;
+import com.iohao.mmo.client.input.MailInputCommandRegion;
+import com.iohao.mmo.client.input.MapInputCommandRegion;
+import com.iohao.mmo.client.input.PersonInputCommandRegion;
 
 import java.util.List;
 

+ 1 - 1
provide/bag-provide/src/main/java/com/iohao/mmo/bag/client/BagInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/BagInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.bag.client;
+package com.iohao.mmo.client.input;
 
 import com.alibaba.fastjson2.JSONObject;
 import com.iohao.game.action.skeleton.protocol.wrapper.BoolValue;

+ 1 - 1
provide/bag-provide/src/main/java/com/iohao/mmo/bag/client/BagInternalHelper.java → one-client/src/main/java/com/iohao/mmo/client/input/BagInternalHelper.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.bag.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.mmo.bag.proto.BagItemMessage;
 import com.iohao.mmo.bag.proto.UseItemMessage;

+ 1 - 1
provide/common-provide/src/main/java/com/iohao/mmo/common/provide/client/CommonInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/CommonInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.common.provide.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.ByteValueList;
 import com.iohao.game.external.client.AbstractInputCommandRegion;

+ 1 - 1
provide/equip-provide/src/main/java/com/iohao/mmo/equip/client/EquipInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/EquipInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.equip.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.ByteValueList;
 import com.iohao.game.action.skeleton.protocol.wrapper.StringValue;

+ 1 - 1
provide/bag-provide/src/main/java/com/iohao/mmo/bag/client/ItemInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/ItemInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.bag.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.ByteValueList;
 import com.iohao.game.external.client.AbstractInputCommandRegion;

+ 1 - 1
provide/level-provide/src/main/java/com/iohao/mmo/level/client/LevelInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/LevelInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.level.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.LongValue;
 import com.iohao.game.external.client.AbstractInputCommandRegion;

+ 1 - 1
provide/login-provide/src/main/java/com/iohao/mmo/login/client/LoginInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/LoginInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.login.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.StringValue;
 import com.iohao.game.common.kit.InternalKit;

+ 1 - 1
provide/mail-provide/src/main/java/com/iohao/mmo/mail/client/MailInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/MailInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.mail.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.action.skeleton.protocol.wrapper.BoolValue;
 import com.iohao.game.action.skeleton.protocol.wrapper.ByteValueList;

+ 1 - 1
provide/map-provide/src/main/java/com/iohao/mmo/map/client/MapInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/MapInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.map.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.common.kit.attr.AttrOption;
 import com.iohao.game.external.client.AbstractInputCommandRegion;

+ 1 - 1
provide/person-provide/src/main/java/com/iohao/mmo/person/client/PersonInputCommandRegion.java → one-client/src/main/java/com/iohao/mmo/client/input/PersonInputCommandRegion.java

@@ -16,7 +16,7 @@
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
-package com.iohao.mmo.person.client;
+package com.iohao.mmo.client.input;
 
 import com.iohao.game.external.client.AbstractInputCommandRegion;
 import com.iohao.mmo.common.provide.kit.JsonKit;

+ 0 - 7
provide/common-provide/pom.xml

@@ -18,13 +18,6 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
     <dependencies>
-        <!-- 模拟客户端请求模块 https://www.yuque.com/iohao/game/tc83ud -->
-        <dependency>
-            <groupId>com.iohao.game</groupId>
-            <artifactId>light-client</artifactId>
-            <version>${ioGame.version}</version>
-        </dependency>
-
         <!-- protobuf 模块 https://www.yuque.com/iohao/game/vpe2t6 -->
         <dependency>
             <groupId>com.iohao.game</groupId>