Skip to content

Commit c2b174b

Browse files
committed
🐳 21.24
1 parent 16fece7 commit c2b174b

File tree

24 files changed

+104
-26
lines changed

24 files changed

+104
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ ioGame 是轻量级的网络编程框架,**不依赖任何第三方**中间件
257257
<dependency>
258258
<groupId>com.iohao.game</groupId>
259259
<artifactId>run-one-netty</artifactId>
260-
<version>21.23</version>
260+
<version>21.24</version>
261261
</dependency>
262262
```
263263

changeLog_ioGame.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,78 @@
1111

1212

1313

14+
15+
16+
### 2025-02-12 - v21.24
17+
18+
https://github.com/iohao/ioGame/releases/tag/21.24
19+
20+
**Version update summary**
21+
22+
> 1. refactor(client): Client support boxing and unboxing
23+
> 2. refactor(core): FlowContextKit add ofFlowContext method
24+
> 3. refactor(room): room add getPlayerBySeat method
25+
> 4. fix(core): [#425](https://github.com/iohao/ioGame/issues/425) When there is a method with the same name as the action, the `actionMethodIndex` is not obtained correctly.
26+
> 5. refactor(core): MethodParser add parseData method
27+
28+
29+
------
30+
31+
32+
33+
**[client]** Client support boxing and unboxing.
34+
35+
```java
36+
// my client,support:int、long、boolean、String、List
37+
public final class MyInputCommandRegion extends AbstractInputCommandRegion {
38+
@Override
39+
public void initInputCommand() {
40+
this.inputCommandCreate.cmd = 1;
41+
// Client support boxing and unboxing
42+
ofCommand(2).setTitle("enterRoom").setRequestData(() -> {
43+
// enterRoom
44+
long roomId = 2;
45+
return roomId;
46+
});
47+
48+
// or
49+
ofCommand(2).setTitle("enterRoom").setRequestData(() -> {
50+
// enterRoom
51+
return LongValue.of(2);
52+
});
53+
}
54+
}
55+
56+
// my action
57+
@ActionController(1)
58+
public final class MyAction {
59+
/**
60+
* enterRoom
61+
*
62+
* @param roomId roomId
63+
*/
64+
@ActionMethod(2)
65+
public void enterRoom(long roomId) {
66+
}
67+
}
68+
```
69+
70+
71+
72+
------
73+
74+
**[other updates]**
75+
76+
```xml
77+
<netty.version>4.1.117.Final</netty.version>
78+
```
79+
80+
------
81+
82+
83+
84+
85+
1486
### 2025-01-08 - v21.23
1587

1688
https://github.com/iohao/ioGame/releases/tag/21.23

common/common-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>ioGame</artifactId>
77
<groupId>com.iohao.game</groupId>
8-
<version>21.23</version>
8+
<version>21.24</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

common/common-core/src/main/java/com/iohao/game/action/skeleton/IoGameVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public final class IoGameVersion {
2626
public static final String VERSION;
2727

2828
static {
29-
String internalVersion = "<version>21.23</version>";
29+
String internalVersion = "<version>21.24</version>";
3030

3131
VERSION = internalVersion
3232
.replace("<version>", "")

common/common-core/src/main/java/com/iohao/game/action/skeleton/core/BarSkeletonBuilderParamConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public BarSkeletonBuilder createBuilder() {
8888
// true 打印广播日志,默认不打印
8989
IoGameCommonCoreConfig.broadcastLog = this.broadcastLog;
9090

91-
extracted();
91+
extracted1();
9292

9393
return builder;
9494
}
@@ -179,10 +179,10 @@ private void scanClass(final List<Class<?>> actionList
179179
}
180180
}
181181

182-
private static void extracted() {
183-
if (!Objects.equals(IoGameBanner.flag21, "ioGame21")) {
182+
private static void extracted1() {
183+
if (!Objects.equals(IoGameBanner.flag21, "ioGame..21..")) {
184184
byte[] bytes = new byte[]{105, 111, 71, 97, 109, 101, 72, 111, 109, 101, 32, 104, 116, 116, 112, 58, 47, 47, 103, 97, 109, 101, 46, 105, 111, 104, 97, 111, 46, 99, 111, 109, 10, 103, 105, 116, 104, 117, 98, 32, 32, 32, 32, 32, 104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 105, 111, 104, 97, 111, 47, 105, 111, 71, 97, 109, 101, 10};
185-
IoGameBanner.printlnMsg(new String(bytes, StandardCharsets.UTF_8));
185+
IoGameBanner.printlnMsg2(new String(bytes, StandardCharsets.UTF_8));
186186
}
187187
}
188188
}

common/common-core/src/main/java/com/iohao/game/action/skeleton/toy/BreakingNewsAbout.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public List<News> listMainNews() {
100100
@Override
101101
public List<News> listAdv() {
102102
return List.of(
103+
new News("在线体验 demo", "https://a.iohao.com"),
103104
new News("MMO", "https://www.yuque.com/iohao/game/sw08q89x3x7kiuhx"),
104105
new News("桌游类、房间类的实战", "https://www.yuque.com/iohao/game/lul9a9t989s0q2t3")
105106
);
@@ -205,6 +206,7 @@ public List<News> listMainNews() {
205206
@Override
206207
public List<News> listAdv() {
207208
return List.of(
209+
new News("online demo", "https://a.iohao.com"),
208210
new News("MMO", "https://www.yuque.com/iohao/game/sw08q89x3x7kiuhx"),
209211
new News("Room games in action", "https://www.yuque.com/iohao/game/lul9a9t989s0q2t3")
210212
);

common/common-core/src/main/java/com/iohao/game/action/skeleton/toy/IoGameBanner.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ public static void printlnMsg(String message) {
122122
out.println(message);
123123
}
124124

125+
public static void printlnMsg2(String message) {
126+
printlnMsg(message);
127+
}
128+
125129
private void renderBanner1() {
126130
print.set(true);
127131

@@ -253,7 +257,7 @@ private static String getPid() {
253257
}
254258

255259
private IoGameBanner() {
256-
flag21 = "ioGame21";
260+
flag21 = "ioGame..21..";
257261
}
258262

259263
public static IoGameBanner me() {

common/common-kit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>ioGame</artifactId>
77
<groupId>com.iohao.game</groupId>
8-
<version>21.23</version>
8+
<version>21.24</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

common/common-micro-kit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.iohao.game</groupId>
88
<artifactId>ioGame</artifactId>
9-
<version>21.23</version>
9+
<version>21.24</version>
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

common/common-validation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>ioGame</artifactId>
77
<groupId>com.iohao.game</groupId>
8-
<version>21.23</version>
8+
<version>21.24</version>
99
<relativePath>../../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)