|
@@ -18,10 +18,13 @@
|
|
|
*/
|
|
|
package com.iohao.mmo;
|
|
|
|
|
|
+import com.iohao.game.action.skeleton.core.IoGameGlobalSetting;
|
|
|
+import com.iohao.game.action.skeleton.core.codec.JsonDataCodec;
|
|
|
import com.iohao.game.action.skeleton.ext.spring.ActionFactoryBeanForSpring;
|
|
|
import com.iohao.game.bolt.broker.client.AbstractBrokerClientStartup;
|
|
|
import com.iohao.game.bolt.broker.core.common.IoGameGlobalConfig;
|
|
|
import com.iohao.game.bolt.broker.server.BrokerServer;
|
|
|
+import com.iohao.game.common.kit.system.OsInfo;
|
|
|
import com.iohao.game.external.core.ExternalServer;
|
|
|
import com.iohao.game.external.core.config.ExternalGlobalConfig;
|
|
|
import com.iohao.game.external.core.netty.simple.NettyRunOne;
|
|
@@ -54,6 +57,7 @@ public class OneApplication {
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(OneApplication.class, args);
|
|
|
|
|
|
+
|
|
|
extractedConfig();
|
|
|
|
|
|
// 游戏逻辑服列表
|
|
@@ -108,6 +112,10 @@ public class OneApplication {
|
|
|
private static void extractedConfig() {
|
|
|
// 使用自定义 UserProcessor 构建 Executor 的策略
|
|
|
IoGameGlobalConfig.userProcessorExecutorStrategy = new MyUserProcessorExecutorStrategy();
|
|
|
+
|
|
|
+ if (OsInfo.me().isMac()) {
|
|
|
+ IoGameGlobalSetting.setDataCodec(new JsonDataCodec());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Bean
|